|
Re: ROI with IDLanROI & IDLgrROI [message #35111 is a reply to message #35079] |
Mon, 12 May 2003 16:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sergey Koposov (astro@mccme.ru) writes:
> Can somebody help me? I have the following problem. I'm writing the
> program for ROI creating. I don't want to use the xroi program (because
> it is superfluous for my own purposes, and because I want to study the
> object-oriented writing in IDL).
> I need the progam to construct the ROI bounded by the the freehand drawn
> curve. The IDLanROI class allow to define a set of points as the path.
> But the mask constructed by the way of the path is the area near the
> curve, but I need to include in the mask all points placed inside the curve.
> In brief, I wanted to construct the ROI bounded by the the freehand
> drawn curve by means of the IDL ROI classes. Is it possible? If no, how
> to solve my problem without IDL ROI classes?
It is odd that you can't get the indices directly from
the IDLanROI object, but if that were the only thing odd
about IDL we would all be grateful. :-)
You *can* get the indices indirectly, via the POLYFILLV
function. Here is an article that explains the process:
http://www.dfanning.com/ip_tips/xroi.html
> PS Excuse me for the bad english :) , but I hope that my message was
> nevertheless understandable:)
Don't worry about it. Pavel was posting just this morning,
so we are used to the syntax. :-)
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
|
|
|