> Dear all,
>
> is there a way to use the rgb measure command with redirecting?
> What I would like to do is create multiple rois, which are added to
> the roi
> manager and then use these rois for measuring rgb-values in a color
> image.
> Alternatively, could one use the particle analyzer with redirection to
> a rgb
> image to have the rgb-values of all the segmented particles?
Use Image>Color>Make Composite to convert the RGB image into a
multi-channel stack and then use the ROI Manager's "Measure" command to
measure the ROIs on each of the three channels. Here is an example that
uses the Embryos sample image.
run("Embryos (42K)");
run("Make Composite");
id = getImageID;
roiManager("reset");
setBatchMode(true);
run("Duplicate...", "title=mask"); // red channel has best contrast
run("Convert to Mask");
run("Dilate");
run("Erode");
run("Fill Holes");
run("Watershed");
run("Set Measurements...", "area mean circularity slice decimal=3");
setThreshold(255, 255);
run("Analyze Particles...", "size=250 circularity=0.4 exclude clear
add");
selectImage(id);
for (c=1; c<=3; c++) {
Stack.setChannel(c);
roiManager("Measure");
}
setOption("Show All",true);
-wayne