Posted by
Herbie on
Dec 12, 2018; 6:18pm
URL: http://imagej.273.s1.nabble.com/Display-Labels-in-Results-Table-Color-Pixel-Plugin-tp5021560p5021561.html
Good day Mariana,
if you don't mind running a one-liner macro every time you've used the
Color Pixel Counter Plugin ...
Here it is:
setResult("Label",nResults-1,getTitle()+"_"+getResultLabel(nResults-1));
Paste the above macro code line to an empty macro window (Plugins >> New
>> Macro).
Regards
Herbie
:::::::::::::::::::::::::::::::::::::
Am 12.12.18 um 17:53 schrieb mariana:
> Hi all,
>
> I have the task below to run using the Color Pixel Counter Plugin (after
> opening my image):
>
> run("RGB Color");
> run("Color Pixel Counter", "color=Red cells=20 pixels=0.2100 minimum=255
> display_0 display_1");
> run("Color Pixel Counter", "color=Green cells=20 pixels=0.2100 minimum=255
> display_0 display_1");
> run("Color Pixel Counter", "color=Blue cells=20 pixels=0.2100 minimum=255
> display_0 display_1");
>
> However, I have been struggling in displaying the name of my original file
> in the first column of the Results Table (what I guess would be the place
> for my "labels"):
> Color Color Pixels Total Pixels Particles % Color
> 1 Red 1173093 1228800 5586157 95
> 2 Green 48230 1228800 229667 4
> 3 Blue 7477 1228800 35605 1
>
> Instead of the output displaying 1, 2 and 3, I would like it to display the
> name of my file. Could I apply the method for batch processing?
>
> Any assistance would be very welcome.
>
> Kind regards,
> Mariana
>
>
>
> --
> Sent from:
http://imagej.1557.x6.nabble.com/>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html