LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get coordinates of a ROI in an image in Labview

Hi,

I have a question regarding image processing in NI-IMAQ. I have
Ni-IMAQ module available, soon I may acquire NI-Vision too. I have an
image file and I would like to draw a rectangle as Region of Interest
(ROI) and be able to get the coordinates of the pixels in the ROI or
along the edges of the ROI. I tried to find vis for this operation. I
was able to find vis which provides the pixel values but I could not
find the vis for the above operation. Any information regarding
solution to above problem or any good resources for learning Labview
and NI-IMAQ will be appreciated.

Thanks,
Ravi.

Message 1 of 2
(6,523 Views)
Hello Ravi,

Thank you for using our discussion forums. We can extract the ROI by using the two IMAQ functions "IMAQ Select Rectangle" and "IMAQ Extract".  From there we can get the ROI coordinates using a property node from the extracted image.   Also, here are some examples regarding ROI manipulation that you might find helpful. 

http://zone.ni.com/devzone/cda/epd/p/id/1239
http://zone.ni.com/devzone/cda/tut/p/id/2887

Regards,
Vu D
Applications Engineer


0 Kudos
Message 2 of 2
(6,503 Views)