Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hande_b_
Beginner
91 Views

Usage of ippiLUT_Linear

Hi everyone, i want to implement adaptive histogram equalization on one channel image. I fill lookuptable(pValues) at every subwindow and use 

ippiLUT_Linear_8u_C1R(srcImage->DataPtr(subwindow),srcImage->Step(),dstImage->DataPtr(subwindow),dstImage->Step(),subwindow->size,pValues,pLevels,histSize)

but i didnt remove blocking effect such that ippiLUT_8u_C1R gives the same result. Than firstly i generated whole image with ippiLUT_8u_C1R

then at the end use

ippiLUT_Linear_8u_C1R(dstImage->DataPtr(),dstImage->Step(),dstImage->DataPtr(),dstImage->Step(),dstImage->size,pValues,pLevels,histSize);

but it didnt worked too. The usage of ippiLUT_Linear is not like this? What is the point that i am missing?

Thanks.

0 Kudos
5 Replies
SergeyKostrov
Valued Contributor II
91 Views

Three sets of ippiLUT_xxx functions perform intensity transformation of some source image using the lookup table (LUT) and have internal differences. Take a look at a demo: ippilutdemo.jpg and it shows the differences.
hande_b_
Beginner
91 Views

Ok after reading the documentation i understood the reason. It interpolates lut values not image intensity values.

SergeyKostrov
Valued Contributor II
91 Views

>>...It interpolates lut values not image intensity values... Here are a couple of more details: 1. ippiLUT_xxx functions perform intensity transformation of the source image using the LUT with Exact Mapping. 2. ippiLUT_Linear_xxx functions perform intensity transformation of the source image using the LUT with Linear Interpolation. 3. ippiLUT_Cubic_xxx functions perform intensity transformation of the source image using the LUT with Cubic Interpolation.
SergeyKostrov
Valued Contributor II
91 Views

Here is an example: ippilutdemo.jpg If a value for some pixel in an 8-bit depth source image is 225 then, depending on a transforming method, the pixel value in the output image could be: ~178 for ippiLUT_xxx or ~207 for ippiLUT_Linear_xxx or ~195 for ippiLUT_Cubic_xxx
hande_b_
Beginner
91 Views

Thanks for your interest Sergey :) what i want is smoothing the blocking artifacts on boundaries so lut with interpolation is not suitable for my purpose, i have to look for something else

Reply