![]() | ![]() |
![]() |
Previous Message |
Next Message Previous in Topic | Next in Topic Previous by Same Author | Next by Same Author Previous Page (December 2007) | Back to Main IMAGEJ Page | | ![]()
Reply
| Post a New Message |
Join or Leave IMAGEJ, or Change Options
|
Search | ![]()
Chronologically |
Most Recent First |
Wrap Text (Proportional Font) |
Don't Wrap Text (Non-proportional Font) | ![]() |
Approved-By: [log in to unmask] Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <[log in to unmask]> Message-ID: <[log in to unmask]> Date: Thu, 27 Dec 2007 23:26:14 -0600 Reply-To: ImageJ Interest Group <[log in to unmask]> Sender: ImageJ Interest Group <[log in to unmask]> From: Justin McGrath <[log in to unmask]> Subject: Re: Writing Mean value on blocked image In-Reply-To: <[log in to unmask]>Hi Bill, You can use the getResult and drawString functions (you will probably also need toString) documented here http://rsb.info.nih.gov/ij/developer/macro/functions.html. Justin On Dec 27, 2007 12:25 PM, Bill Saidel <[log in to unmask]> wrote: > 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) >
![]() |
![]() Center for Information Technology National Institutes of Health Bethesda, Maryland 20892 301 594 6248 (v) 301 496 8294 (TDD) Comments and Assistance Accessibility ![]() |