LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zoom into ROI

I'm a new user of LabVIEW. 
 
How do I zoom into a region of interest given a snapshot?  I was thinking of using the Extract function, but it needs the array containing the coordinates (bounds?) of the ROI.  I want the bounds(?) to vary depending on the snapshot I take...but I don't know how to do this...
 
Another way of putting it is thatm, assuming I know the pixel value (zero or non-zero), how do i get its coordinates? 
 
0 Kudos
Message 1 of 2
(2,816 Views)
Hello satp,
 
An easy way to programmatically zoom in on the ROI is to use the Unbundle By Name.vi with the ROI cluster as the input to extract contours from the cluster.  Then use an Index Array.vi to get the first dimension of the array and use another Unbundle By Name.vi to extract coordinates.  You can then simply wire the output of coordinates to the Optional Input terminal of the IMAQ Extract.vi to extract the ROI.
 
If cal also zoom in on the extracted ROI by right-clicking the image indicator on the block diagram and creating a ZoomSingle property node.  I hope this helps out!
Carlton
CLA
0 Kudos
Message 2 of 2
(2,785 Views)