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

Home » Public Forums » archive » Re: Cutting/Exclude ROI's based on overlapping
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: Cutting/Exclude ROI's based on overlapping [message #52309 is a reply to message #52302] Sat, 27 January 2007 15:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Erik writes:

> I have some problems with a ROI based program. I want to cut/exclude
> some parts of the ROI's when the ROI is overlapped by another ROI in
> the same draw widget.
>
> As you will know the ROI Data is built like this [ <number of
> dimensions>, <corresponding coordinate> ]. I use the IDLgrROI object to
> draw and manage my ROI's.
>
> Is there any method to cut/exclude some parts of a ROI based on
> coordinates or other ROI's in a easy way? All info about excluding
> areas in ROI's will be appreciated!!

This is not a totally trivial problem, but it is well-known.
I don't know of any publicly available IDL solutions. But
a quick Google search of "intersecting polygons" will give
you lots of ideas. Note that you can find the convex hull
of a polygon with the TRIANGULATE procedure:

http://www.dfanning.com/tips/convex_hull.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: colorbar - annotation isn't equally spaced...
Next Topic: Re: operation with array of NaNs

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

Current Time: Fri Oct 10 08:04:05 PDT 2025

Total time taken to generate the page: 1.20221 seconds