LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Live Image Pixel Remapping using Lookup Table?

Hi,

 

The attached VI grabs a live image and then snaps a reference image. It then allows for subsequent frame subtraction and display or live subtraction from the reference image and display.

 

To brighten the 'difference image', I've so far used a Log function on the mathlookup table, which works okay, but doesnt quite give me the contrast control I'm after.

 

What I want to do, is replace the Math Lookup Table with a custom lookup table where I can input the following in the front panel:

 

- Number of 'bins' (N)

- Minimum 'bin value' (GreyMin)

 

I want the lookup table to remap the 8-bit data and redistribute into 'N' bins for 255 minus GreyMin.

 

i.e. if I input N=16 and GreyMin=127. Then greyscale values of 0to15 become 127, 16to31 become 135, 32to47 become 143 etc.

 

I dont really know where to start with more complex lookup tables like this, so any pointers to documentation etc would be very helpful.

 

Cheers,

 

Matt

 

 

 

0 Kudos
Message 1 of 1
(1,879 Views)