Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to find the vertices of an ROI shape created in IDL's XROI, so that I can redraw the ROI on multiple images. I know you can find the centroid, area and perimeter with the GEOMETRY command, but I can't find anything about vertices.

Is there a way of finding the coordinates of an ROI's vertices in IDL?

share|improve this question
add comment

1 Answer 1

Just landed on this query. Hope you have found the answer by now, or if not, here I guess is the answer.

For a given roi object, say 'oroi', use this command to get the vertices

>> oroi -> GetProperty, data=a

so, here 'a' will have the X,Y,Z values of the vertices. Actually do 'a(*)+=0.5' to get the vertices values (at the center of the pixels).

Cheers

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.