LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with image profile plotting

Hi, 

 

I am currently writing a program that constantly streams video from a CMOS camera, and when I click "capture" it prints the image captured in a frame next to the stream.  This I have done.  I then want to be able to get the width in pixels of the sample I'm analyzing.  If anyone has used ImageJ, I'm trying to do the same task as drawing a line and getting the profile plot of the line I've drawn rather than get a histogram/graph.  I don't necessarily need to draw a line (I can use the whole image), and it can be in 2D or 3D as long as the user can still read off the width.  I'm looking at nanoshells so they're uniformly spherical, but I'd still like to be able to get the width in x and y.  I should also mention that I am not the most skilled at using IMAQ .vi's, but I do have access to them, so any solutions or suggestions that include them would still be helpful but lots of details if so, please.  Thanks.

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

Hi Chillface,

 

You can simply use the IMAQ GetImageSize VI to get the X and Y resolution of an image data type. If you are not using vision software you would have to write some logic to loop through each pixel value to see if one exists or not to determine the size. A good starting point to learn the vision software is from the shipping examples. If you are in LabVIEW click Help>>Find Examples>>Hardware Input and Output>>IMAQdx>>High-Level or under Find Examples>>Toolkits and Modules>>Vision.

 

IMAQ GetImageSize VI
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_getimagesize/

 

Tim O

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,185 Views)