Re: Finding boundary and using plots [message #37960 is a reply to message #37953] |
Thu, 05 February 2004 08:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nuno Oliveira writes:
> I have a little problem in here. I'm (still) dealing with ROIs) .
Not still using CW_DEFROI, I hope. :-(
> The case is that making the roi with cw_defroi, then I want to visualize it
> in a window over the image.
Oh, my gosh!
> I get the points of the boundary, with my own
> function that returns the boundary points. Everything was okay while when
> the rois where rectangular or circles (besides the fact that has more points
> than Fanning's boundary because of diagonals I presume).
>
> But when the roi is a polygon I get a strange thing. After the boundary has
> been displayed there lines connecting the peaks, particularly when the angle
> is little.
>
> I made a helping tool, that gives the mask of the boundary and surprise if
> has not those lines! So I thought I would be from plot command, but when I
> used Fanning's boundary the strange lines were not there!
>
> Someone experienced something like this?
Oh, we've experienced everything, pretty much. :-(
Hard to say what is going on here without seeing the code,
but I'm pretty sure this will turn out to be an ordering
problem (no, this doesn't surprise me, given what CW_ROI
was designed to do). One thing we know for sure, Fanning's
boundary is ORDERED! (Probably the result of experience,
tempered with great frustration, no doubt.)
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
|
|
|