Re: Logging pixel counts
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Nov 27, 2012; 9:17pm
URL: http://imagej.273.s1.nabble.com/Logging-pixel-counts-tp5000962p5000978.html
On Nov 26, 2012, at 3:26 PM, Hannah C wrote:
> Hi there
>
> I am very new to to image j
>
> My problem is that I have a load (5447) of 8 bit images and need to record
> the name of the image file and the count of the 139 grey value (row 140 of
> 256) in a single output table.
Run Process>Batch>Macro, click "Input..." and select the directory containing the files, paste
if (i==0)
print("\\Clear");
getRawStatistics(n,mean,min,max,sd,hist);
print(getTitle+"\t "+hist[139]);
into the macro box, then press "Process". When finished, use the "Log" window's File>Save As command to save the table.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html