How to measure area of a color in a stack?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to measure area of a color in a stack?

brian
Hi, I need to measure the number of pixels that are a certain shade of green in each image of a batch of 100+ color images and have the results listed along with the file labels.

I have tried the following macro:

run("Color Threshold...");
run("Set Measurements...", "area limit display redirect=None decimal=3");
run("Results...");
run("Measure");
run("Open Next");

This will measure just the open image.  Tried stacks, but it was too much memory to open all at once...can it open one, measure, record the measurement, then close image and open the next?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: How to measure area of a color in a stack?

Jacqueline Ross
Hi Brian,

Have you tried using the built-in batch processing option under Process - Batch?

You can paste your macro in (without the Open Next command) and then process entire folders.

Kind regards,

Jacqui

Jacqueline Ross

Biomedical Imaging Microscopist
Biomedical Imaging Research Unit
School of Medical Sciences
Faculty of Medical & Health Sciences
The University of Auckland
Private Bag 92019
Auckland, NEW ZEALAND

Tel: 64 9 373 7599 Ext 87438
Fax: 64 9 373 7484

http://www.fmhs.auckland.ac.nz/sms/biru/


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of brian
Sent: Friday, 15 July 2011 4:05 a.m.
To: [hidden email]
Subject: How to measure area of a color in a stack?

Hi, I need to measure the number of pixels that are a certain shade of green
in each image of a batch of 100+ color images and have the results listed
along with the file labels.

I have tried the following macro:

run("Color Threshold...");
run("Set Measurements...", "area limit display redirect=None decimal=3");
run("Results...");
run("Measure");
run("Open Next");

This will measure just the open image.  Tried stacks, but it was too much
memory to open all at once...can it open one, measure, record the
measurement, then close image and open the next?

Thanks.

--
View this message in context: http://imagej.588099.n2.nabble.com/How-to-measure-area-of-a-color-in-a-stack-tp6583859p6583859.html
Sent from the ImageJ mailing list archive at Nabble.com.