Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Index values of a 2D array

Hi,
Is there a way to access the index values of a particualr element in a 2D array.The 2D array is obtained from an image, using IMAQ color image to array vi.I need the index values of the pixels in an ROI drawn on a 256x256 image.
Deepak
0 Kudos
Message 1 of 2
(3,270 Views)
Deepak,

I'm not sure exactly what you are asking for, so I will try to cover the general subject.

ROI clusters contain the pixel coordinates of the rectangular boundary limits of the ROI, and the points required to create the ROI itself. The points depend on the type of ROI (rectangle, circle, point, etc.).

If you are converting the image to a 2D array, the ROI coordinates should still correspond to the same array indices.

There are a few ROI tools for extracting points along the boundary of an ROI and their coordinates. They are found under "Machine Vision" -> "Analytical Geometry". This might help you.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,270 Views)