> On Jan 23, 2024, at 3:12 PM, Norbert Vischer <[email protected]> wrote:
>
> Hello all (Wayne?)
>
> The macro below correctly detects 3 particles in 10 squares, but shows
> misleading warnings in the
> Log window.
This 1.54h regression is fixed in the latest ImageJ daily build (1.54i9).
-wayne
> In previous versions, these warnings did not appear, still the user was free
> to add them in the code.
> Personally, I would prefer that these warnings would be avoided.
>
> Best regards, Norbert
>
>
>
>> 1.54h 15 December 2023
>> Thanks to 'mandamanta', a warning is displayed in the "Log" window
>> if no particles are detected by the particle analyzer
>> when its running in batch mode.
>
>
> close("ABC");
> newImage("ABC", "8-bit black", 1000, 200, 1);
> run("Clear Results");
> print("\\Clear");
> for(jj = 0; jj< 10; jj++){
> setForegroundColor(50, 50, 50);
> fillRect(jj* 100, 0, 95, 95);
> setForegroundColor(120, 120, 120);
> if(jj % 2 > 0 && jj > 3)
> fillOval(jj* 100 + 10, 32 , 36+jj, 33-jj);
> }
>
> for(jj = 0; jj< 10; jj++){
> setThreshold(100, 255);
> makeRectangle(jj* 100, 0, 95, 95);
> run("Analyze Particles...", "size=300-Infinity pixel display");
> }
> selectWindow("Log");
>
>
> /*
> ==Log==
> No particles detected. The threshold (100-255) may not be correct.
> No particles detected. The threshold (100-255) may not be correct.
> No particles detected. The threshold (100-255) may not be correct.
> No particles detected. The threshold (100-255) may not be correct.
> No particles detected. The threshold (100-255) may not be correct.
> */
> --
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html