06-30-2008 02:15 AM
06-30-2008 03:36 AM
Hi, Lamb,
If you working with 12 bit, then - you're lucky. Just don't worry about signed representation. In your case black is zero, and white is 4095 gray values. You don't need to cast unsigned/signed and back in this case.
best regards,
Andrey.
06-30-2008 06:46 PM
07-01-2008 02:30 AM
Hi, RichLamb,
I mean that up to 15 bit you have no problems with signed representation. But if you have full 16 bit range, then in some cases you should fugure out how to handle such images. For example, some my customers frustrated with histogram with range -32768...32767, Image Info also contained negative values, and I should correct these values every time and so on. Also acquisition devices usually deliver unsigned 16 bits, and they must be converted to signed representation for IMAQ Vision... In some cases for me more easy to cut low significant bit, than dealing with signed representation.
Andrey.
07-01-2008 06:04 PM
OK - thanks. Limiting to 15-bit sounds like the approach. Chopping off the lsb is a good idea too.
cheers