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

Home » Public Forums » archive » Re: Extracting ROI without IDL objects is it possible
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: Extracting ROI without IDL objects is it possible [message #37728 is a reply to message #37727] Thu, 22 January 2004 08:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nuno Oliveira writes:

> I'm having a little trouble with extracting ROI with IDL. I'm trying to make
> a little application for temporary use while I don't learn how to manage
> IDLanROI objects.

You will be MILES ahead if you give up on CW_DEFROI and learn
to write your own ROI tool:

http://www.dfanning.com/widget_tips/line_on_image.html

What you want are the points that describe the ROI polygon,
not the pixel indices of the pixels inside the ROI.

If you HAD to use CW_DEFROI for some reason (your Internet
connect to my web page was broken, for example) you could
use Find_Boundary to recover the points on the boundary of
your ROI:

http://www.dfanning.com/programs/find_boundary.pro

Then, you could just plot these boundary points with PLOTS
right on top of your image.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@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
Read Message
Read Message
Read Message
Previous Topic: Re: Strange widget_info(FIND_BY_UNAME...) results
Next Topic: Limiting the number of VM instances

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

Current Time: Thu Dec 04 13:07:11 PST 2025

Total time taken to generate the page: 0.07602 seconds