Login  Register

Re: Mask smoothing after resizing

Posted by André Pereira on Jul 16, 2015; 12:54am
URL: http://imagej.273.s1.nabble.com/Mask-smoothing-after-resizing-tp5013545p5013584.html

Hi All,

I would also be very interested in knowing how to implement in Python the
second option, i.e., reproducing the "Edit>Selection>Fit Spline" from the
GUI into Python code. I can do a "Create Selection", but not the spline
fitting.

Thanks!

My best,
Andre

On 15 July 2015 at 18:05, damien.schnebelen <[hidden email]>
wrote:

> Dear all,
>
> I have another question concerning the smoothing. The method enounced above
> works correctly when I do it by hand, but when I have scripted it in
> Python,
> the results are not the same.
> I've take a look at the java code for the manual function (using Command
> Finders -> Fit Splines -> Source) but the function there is first written
> in
> Java, and one more important thing in that its needs a lot of other
> functions, also written in Java language.
> So my question is: is there a way to use "correctly" this function using
> Python ?
> The following picture shows the differences between the manual and the
> scripted image treatment.
> From the left to the right:
> -Fit with splines done manually (edit -> selection -> Fit Splines)
> -Fit with splines done automatically (python language)
> -One of the script tested to get the Polygon.
>
> <
> http://imagej.1557.x6.nabble.com/file/n5013565/Screen_Shot_2015-07-15_at_6.png
> >
>
>
> Thanks by advance,
> Damien
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Mask-smoothing-after-resizing-tp5013545p5013565.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html