Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Saved Tiff Images Are Being Inverted

Hello,

 

I'm currently having trouble with saving captured Tiff images.  I am using the imgSessionSaveBufferEx() method to save the images.

 

The image are all grayscale, which is expected, but the shades of gray are being inverted.  When I do a snap the image looks fine.  However when I do a grab and save, the image is suddenly inverted.  I've attached resulting images from the snap and grab for reference.

Download All
0 Kudos
Message 1 of 5
(3,953 Views)

Hi brianbat,

 

What camera are you using?  And I'm assuming you're using CVI, what version of that are you using?  Also what IMAQdx drivers are you using? Thanks!

Matt S.
Industrial Communications Product Support Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,926 Views)

Camera Model: Mikrotron MC1310

IMAQ version: 4.7

Application Language: 64-bit C/C++ - VisualStudio 2010

0 Kudos
Message 3 of 5
(3,920 Views)

Hi brianbat,

 

I would make sure you are using the function correctly, there are some examples that are installed along with the drivers that should be for Basic Read Image (VB): C:\Program Files\National Instruments\Vision\Examples\dotNET\1. Getting Started\Read Image\vb  

 

Thanks!

Matt S.
Industrial Communications Product Support Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,907 Views)

Hello,

 

I am using Windows 7, x64 so I assume that within the path you provided the "Program Files" for me would be "Program Files (x86)".  If so, there is a Vision folder located within my "C:\Program Files(x86)\National Instruments folder.  However the Vision folder does not contain a folder named Examples.  It does contain a folder named dotNet but within that folder is an Assemblies folder.

 

-brian

0 Kudos
Message 5 of 5
(3,898 Views)