Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Unwanted Image Inversion

Dear All,
I wrote a program in VB.NET (using NI-PCIe 1429) that enables me to view images acquired by IMAQ, however each time I save the very same images, without any image manipulation, my saved images are the inversion of the viewd images (Black<->White).
In addition, when I used the same VB.NET program on a different computer, the saved images were normal.

Any Idea to what could have caused this?

Thank You,
Tami

0 Kudos
Message 1 of 2
(2,922 Views)

It sounds like you may be saving 10-bit images, and image viewers may display the data with the wrong endianess (big endian vs. little endian). What file format are you using, and what viewers are you using on your two machines to view the images. I woukld bet that if you used the same file format and the same viewer, you would get the same looking image. Just as a side note, if you read the file back using NI Vision functions, does it look correct? If so, then I would bet the viewer you are using is not interpreting the byte order correctly. PNG is a good file format that is better standardized on how to interpret 16-biit images, so you might try saving the image in this format as well.

Hope this helps,

Brad 

Message 2 of 2
(2,911 Views)