Login  Register

Re: Analyze Partcle - in Macro?

Posted by Andrew Jarrett on Mar 02, 2011; 5:36pm
URL: http://imagej.273.s1.nabble.com/Analyze-Partcle-in-Macro-tp3685510p3685512.html

Hi, I am hoping to learn the url for this ImageJ blog/posting .... I can't
quite seem to sleuth it out. Thanks, Andy



On Wed, Mar 2, 2011 at 6:21 AM, Michael Schmid <[hidden email]>wrote:

> Hi Marcel,
>
> it seems you can't do getResult("Label", row) because that function works
> only with columns containing numbers.
> What about comparing with the previous length of the Results table?
>
> run("Clear Results");
> lastLength=0;
> for (k=0; k<list.length; k++) {
>  ... select image list[k]
>  ... run("Analyze Particles...", .....
>  if (nResults>lastLength) {
>    //new particles found in this image
>    saveAs("Tiff", dir3+"O"+list[k]);
>    lastLength = nResults;
>  }
> }
>
>
>
> Michael
> ________________________________________________________________
>
> On 2 Mar 2011, at 13:47, Marcel Krzan PhD wrote:
>
>  Hi,
>>
>> I have one more question for my macro.
>> In the loop I analysed the thousends of the slides. The objects
>> (particles) are
>> only on a few of
>> them (<<1%) .
>> The function works perfect, ... but i don't know in which way detect the
>> new
>> results in the
>> label. I thinkabout the function - "IF" new line was added to the label,
>> then
>> "saveas..."
>> but how I can detect the new results was added to the label.
>> .....
>> run("Set Measurements...", "area standard centroid center fit shape limit
>> display
>> redirect=None decimal=3");
>>
>> run("Analyze Particles...", "size=10000-25000 circularity=0.00-1.00
>> show=Outlines display
>> include in_situ");
>> ....
>> and now I want to detect:
>>        if ............................ {
>>                        saveAs("Tiff", dir3+"O"+list[k]);
>> }
>>
>> Best regards,
>>
>> Dr. Marcel Krzan
>> Institute of Catalysis and Surface Chemistry
>> Polish Academy of Sciences
>>
>