LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

16bit image not correctly displayed by IMAQ Vision (IMAQ ArrayToImage.vi)

Solved!
Go to solution

Dear developpers,

I'm trying to draw interactively and retrieve a Region of Interest in an image by using IMAQ Vision.

Before doing the ROI, I need to display the Image.

I have an array which comes from a camera, it's an array of 16bit data.

When I convert this array to an image by using "IMAQ ArrayToImage.vi".

The image is displayed but not correctly.

I tried to convert the array into a 16 or 8 bit array but without success.

Could you help me please?

Thanks,

Sébastien16bit badly displayed.PNG

 

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

Are you using the 16 bit palette?

image.png

 

George Zou
0 Kudos
Message 2 of 7
(3,022 Views)

Yep, George nailed it.  Right-click your 16-bit display on the Front Panel, choose Palette from the Drop-down, then choose GreyScale.  Note that you get a rotated (do you know why?) version of your Intensity Graph.

 

Bob Schor

0 Kudos
Message 3 of 7
(3,007 Views)

Yes, I use a 16bit palette

0 Kudos
Message 4 of 7
(2,974 Views)
Solution
Accepted by topic author MAILFERTSeb

The solution comes from the "16-bit display mapping" option: right-click on the image.

I don't know why the image is rotated...

 

0 Kudos
Message 5 of 7
(2,968 Views)

@MAILFERTSeb wrote:

The solution comes from the "16-bit display mapping" option: right-click on the image.

I don't know why the image is rotated...

 


The image is rotated because IMAQ displays a 2D array differently from an intensity graph. For IMAQ rows are displayed horizontally and the origin (X=0,Y=0) is top-left. The intensity graph displays rows vertically and the origin is bottom-left.

0 Kudos
Message 6 of 7
(2,958 Views)

@RamonG wrote:

The intensity graph displays rows vertically and the origin is bottom-left.


By default. Right click it and set "transpose" (or transpose array) and it will rotate the data for you.

 

Than it might still be flipped, but typing a 0 in the max of the scale will flip the scale (or use the flipped property of the scale).

0 Kudos
Message 7 of 7
(2,933 Views)