comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Area of interest [AOI or ROI] routine
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Area of interest [AOI or ROI] routine [message #19918] Thu, 27 April 2000 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Joe Means (means@fsl.orst.edu) writes:

> I would like to find a routine for determining if a point is in a region
> of interest. I realize this functionality exists in the IDL object
> graphic routines. I'll take the time to learn how to use these if I
> have to, but would prefer not to :), if someone knows of a routine I
> can use.

Gosh, Joe, I have the flu today, but even in my condition I can
figure this one out. :-)

(1) Get your ROI points in direct graphics. You could
use something as simple as my rubberband box in
ZIMAGE. You probably have several programs laying
around there now.

(2) Create an IDLanROI object and load the points.

roi = Obj_New('IDLanROI', x, y, z)

IF you don't have a z point, don't worry about it,
just use the x and y points.

(3) Find out if the point you are interested is inside
the ROI:

isIn = roi->ContainsPoints(x1, y1, z1)

(4) Destroy the object.

Obj_Destroy, roi

That's it. I'm going back to bed. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Previous Topic: draw window mouse events
Next Topic: Area of interest [AOI or ROI] routine

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:33:38 PDT 2025

Total time taken to generate the page: 1.52068 seconds