11-16-2006 04:03 PM
11-20-2006 06:25 PM
Hello Ishi,
Thank you for contacting National Instruments. It sounds like you are trying to convert a 10 bit image to an 8 bit image. Casting the image to the new type (16 bit to 8 bit) is the best way, though it will cut off your bottom 8 bits. So, I would make sure that the image data is stored in the first 10 bits not the last (e.g. XXXXXXXX XX000000 which will just cut off the last 2 bits, not 000000XX XXXXXXXX which would cut off all but two bits of your image data). You can shift the bits using the Programming >> Numeric >> DataManipulation >> Logical Shift VI.
I'm unsure what you mean by intensity percentages. Can you provide a more detailed explanation of what you are trying to do with your 8 bit image once you have it? From what I could tell, it sounds like you want to choose an upper and lower limit for your intensity values and threshold it at those values (change all pixels above and below that range to a certain color/byte value), we have several Threshold IMAQ VI's that you can use to do so. Thank you.
-Allison S.
Applications Engineering
11-20-2006 07:03 PM
11-21-2006 02:57 PM