Writing Mean value on blocked image
Posted by Bill Saidel on Dec 27, 2007; 6:25pm
URL: http://imagej.273.s1.nabble.com/Writing-Mean-value-on-blocked-image-tp3697697.html
I wrote a macro that divides an image into squares of known area to do
densitometry on brain sections. It works nicely by copying the ROI,
creating the blocks and writing the number of the block on the image.
(It was directly modeled after the RandomSampleAndMeasure.txt macro.)
For each block, I collect scaled area (in microns squared), mean pixel
value, starting x,y point of each block and max and min pixel value, all
of which are written to the table.
My unsolved problem is that I would like to write not the row number in
each block, but the mean pixel value.
1) How do I access each column in the table as a specific variable and
2) Write the mean value to its specific block on the image.
Ultimately, I intend to make a densitometric contour map out of this
information.
Every suggestion will be greatly appreciated.
Thanks in advance,
Bill Saidel
Biology, Rutgers (NJ)