Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

WindDisplayMapping

I am trying to change the way WindDraw scales the image in the window to use the full color pallete. My understanding is in my situation, it's not supposed to.

 

I have an I16 grayscale image that has 12 bit real depth (when I retrieve the information from the image). When I draw to a WindDraw display, the image color is autoscale to the full range. WindDisplayMapping says that it operates on images of unspecified depth, but it seems like here the depth is known (I check it to see that it's 12 bit, I16). However, it clearly autoscales, and when I use WindDisplayMapping (shifting, min/max range, etc) I get no change in behavior.

 

Anyone have an idea what could cause this?

 

- Chris

0 Kudos
Message 1 of 2
(3,001 Views)

Hi Chris,

 

I'm not sure if the WindDisplayMapping is what you would want to use if you are trying to extend your pixel value resolution.  If you look at the context help for this VI, it talks about scaling down a 16bit image to the 8 bit 0-255 range. 

 

If I understand correcty, and perhaps you can clarify, you are trying to display your image with the full 16 bit rangle, correct?  If so you may want to use the IMAQ Multiply VI to upscale your pixel representation.  So if you are wanting to go from a 12 bit to 16 bit, that's a difference of 4 bits.  Therefore you would multiply by 2^4 or 16. 

 

By doing this, an 12bit pixel value of 2048 would correspond to a 32768 16 bit pixel value.

 

Hope this helps.

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 2 of 2
(2,974 Views)