LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display an image and add axis labels

Hey everyone,

 

I just had a really quick question on a program I created. It uses the vision module to open a file in a new display window, and I would like to add axis to the image simlilar to the picture below (With both the x and y axis labels as pixel, and a cursor which displays the pixel value or intensity). I have attached the simple program, as well as an example of the type of image I would like to open. Thank you for the help! =]

 

image_disp_axis.JPG

0 Kudos
Message 1 of 3
(2,544 Views)

I've updated the open_img.vi file so that it works with the generic sample picture provided, but the program does not work with the image within the ZIP file from the previous post.

 

Or if anyone has any other ideas how to add axis labels to an image, I am by all means open to suggestion. Thanks

Download All
0 Kudos
Message 2 of 3
(2,536 Views)

Hi BoilerUp,

 

Could you clarify a few things to help get an appropriate answer to the question? When you say that you want to "add a cursor which displays the pixel value or intensity," do you plan to look at the pixel value at the current mouse cursor location? If not, how will you select which pixels to investigate? An IMAQ Histograph VI will display how common each pixel value is in an image. Is this similar to what you are looking to do?

 

Adding the axis to the image should not be too difficult using the IMAQ Overlay functions, but I want to first clarify specifically what you are looking to do.

 

Thanks,

Matt
NI Community Team
National Instruments
0 Kudos
Message 3 of 3
(2,508 Views)