Analyze particles - pixel unit option

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

Analyze particles - pixel unit option

Ghislain BUGNICOURT-2
Dear all,

I use something like this in a plugin :
> IJ.run("Analyze Particles...", " size=0-44 circularity=0-1  
> show=Nothing clear add");
Usually, it works well with my tif images.
Nevertheless, I met a problem with tif images coming from another  
acquisition software : this software includes data about "real"  
dimensions to the tif images. So the option "size=0-44" isn't  
considered as in pixels anymore.
That leads to three questions :
  - First of all, is there another way to call "analyze particles"  
from a plugin ? I just copied this from an example...
  - What should I add to "size=0-44" so that the option "pixels unit"  
is set true ?
  - More generally, if the answer to my first question is "no", where  
can I find a description of the possible options to use with IJ.run
("command","options") ?

Thanks
Regards,
Ghislain
Reply | Threaded
Open this post in threaded view
|

Re: Analyze particles - pixel unit option

Jim Passmore
If I open the Set Scale dialog, and click "click to remove scale" then OK,
the macro recorder gives
run("Set Scale...", "distance=0 known=0 pixel=1 unit=pixel");

If you put the plugin version of this macro command into your plugin it
should restore you to pixel dimensions.  However, since you copied this from
another plugin, you might also want to consider if this size limit is
appropriate for your application.  It might be, or you might want to set it
to some other values.


Jim Passmore
Research Associate
Sealed Air Corporation



On Thu, Jul 22, 2010 at 7:32 AM, Ghislain BUGNICOURT <
[hidden email]> wrote:

> Dear all,
>
> I use something like this in a plugin :
>
>> IJ.run("Analyze Particles...", " size=0-44 circularity=0-1 show=Nothing
>> clear add");
>>
> Usually, it works well with my tif images.
> Nevertheless, I met a problem with tif images coming from another
> acquisition software : this software includes data about "real" dimensions
> to the tif images. So the option "size=0-44" isn't considered as in pixels
> anymore.
> That leads to three questions :
>  - First of all, is there another way to call "analyze particles" from a
> plugin ? I just copied this from an example...
>  - What should I add to "size=0-44" so that the option "pixels unit" is set
> true ?
>  - More generally, if the answer to my first question is "no", where can I
> find a description of the possible options to use with
> IJ.run("command","options") ?
>
> Thanks
> Regards,
> Ghislain
>