Re: Spline based ROIs [message #66410] |
Tue, 12 May 2009 00:17 |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
On 12 Mai, 00:43, Robbie <ret...@iinet.net.au> wrote:
> Hi,
>
> I'm trying to write some code for spline based ROIs, but the splines
> seem to be very unstable and "explode" when the control points are
> ordered haphazardly.
>
> Does anyone have code for drawing smooth ROIs.
>
> Here is a picture of what it should look like
>
> http://barnett.id.au/idl/spline.tiff
>
> Source code at:http://nma.cvs.sourceforge.net/viewvc/nma/nma/controls/nm asplinecontr...
>
> Thanks
>
> Robbie
It's a typical problem of splines. Try to implement the commercially
available GVF-Snakes approach from David Fanning. It works well and is
also well programmed. Btw, maybe you have to sort the nodes before and
maybe spline_pp does also the job?
Regards,
Christian
|
|
|