Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript to IMAQ

I have a 2D array coming out of Mathscript; values of 0 and 1, the 1's form a small rectangle in the center.

 

So I  expect to see a small white rectangle in the center.  but all I see is black.

 

I have attached the simple VI in both ver 8.5 and 8.0.

 

Thank you.

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

I can't get your 8.0 VI to work with my version of Labview (8.2.1), it's complaining it was made with version 8.5.

 

Either way, I believe your problem can be solved by right clicking the image display and changing your palette from greyscale to binary. The rectangle should show up as red. If you really, really want the image to show up as white, you can either make a custom palette where a pixel value of 1 is mapped to 255,255,255. Or, you can multiply your image by 255 and not have to change your palette at all.

Message 2 of 3
(3,195 Views)
I have changed the value of 1 to 255, and it worked. Thank you. In any case I have reattached the file in proper ver 8.
0 Kudos
Message 3 of 3
(3,191 Views)