BackgroundSubtracter Java class missing "separate" option from Java macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

BackgroundSubtracter Java class missing "separate" option from Java macro

George H
Hi,

I notice there is a parameter missing in the BackgroundSubtracter java
class when I compare it to the recorded macro in Fiji.

The Java macro is IJ.run(imp, "Subtract Background...", "rolling=50 light
separate sliding");

The option "separate" is what I need.

In the BackgroundSubtracter.rollingBallBackground()  there is no parameter
for "separate".

Can someone explain how this is?

Thanks.
--
George
[hidden email]

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: BackgroundSubtracter Java class missing "separate" option from Java macro

Michael Schmid
Hi George,

for RGB images, the BackgroundSubtracter has two ways to call it:

 - rollingBallBrightnessBackground decomposes the image into hue,
saturation and brightness, and subtracts the background from the
brightness channel only

 - rollingBallBackground(ImageProcessor ip, double radius, boolean
createBackground, boolean lightBackground, boolean useParaboloid, boolean
doPresmooth, boolean correctCorners)
subtracts the background from each color separately. It does what you get
with "separate colors".

Michael
___________________________________________________________________

On Thu, August 21, 2014 10:48, George H wrote:

> Hi,
>
> I notice there is a parameter missing in the BackgroundSubtracter java
> class when I compare it to the recorded macro in Fiji.
>
> The Java macro is IJ.run(imp, "Subtract Background...", "rolling=50 light
> separate sliding");
>
> The option "separate" is what I need.
>
> In the BackgroundSubtracter.rollingBallBackground()  there is no parameter
> for "separate".
>
> Can someone explain how this is?
>
> Thanks.
> --
> George
> [hidden email]
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: BackgroundSubtracter Java class missing "separate" option from Java macro

George H
Thanks Michael.
That worked.

--
George
[hidden email]


On Thu, Aug 21, 2014 at 9:27 PM, Michael Schmid <[hidden email]>
wrote:

> Hi George,
>
> for RGB images, the BackgroundSubtracter has two ways to call it:
>
>  - rollingBallBrightnessBackground decomposes the image into hue,
> saturation and brightness, and subtracts the background from the
> brightness channel only
>
>  - rollingBallBackground(ImageProcessor ip, double radius, boolean
> createBackground, boolean lightBackground, boolean useParaboloid, boolean
> doPresmooth, boolean correctCorners)
> subtracts the background from each color separately. It does what you get
> with "separate colors".
>
> Michael
> ___________________________________________________________________
>
> On Thu, August 21, 2014 10:48, George H wrote:
> > Hi,
> >
> > I notice there is a parameter missing in the BackgroundSubtracter java
> > class when I compare it to the recorded macro in Fiji.
> >
> > The Java macro is IJ.run(imp, "Subtract Background...", "rolling=50 light
> > separate sliding");
> >
> > The option "separate" is what I need.
> >
> > In the BackgroundSubtracter.rollingBallBackground()  there is no
> parameter
> > for "separate".
> >
> > Can someone explain how this is?
> >
> > Thanks.
> > --
> > George
> > [hidden email]
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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