image = | lutTransform2dImg (inImg,lut) |
image = | lutTransform2dImg (inImg,pILut) |
application of a look-up table for each 2d plan of an input image algorithm
If the image is made of one single plan (single 2d grey levels image), the algorithm applies the look-up table provided by the user to the intensities of the image. If the image is multi-sliced (made of several plans, like a single 2d RGB image, for instance, or a sequence image, etc.), a collection of look-up tables (one table per plan) is applied to the intensities of the image.
The look-up table is defined using the ipsdk::imaproc::attr::IntensityLUT data item, that is composed of the following parameters:
Considering, for instance, a single 2d grey levels input image InImg and the lookup table LUT to apply, output image OutImg pixels will equal to:
Given the following look-up table :
Here is an example of look-up table transformation applied to a 8-bits grey level image :
In this example, all pixels with an intensity lower than 150 in input image are set to 0 in output image. Other pixels are set to a value that equals to in output image.