Macro to read ROI intensity from different channels of a z-projection

nROIs = roiManager("count");
Stack.setDisplayMode("Composite");


for (j=0; j<nROIs; j++) {

	
	Stack.setChannel(1);
	roiManager("select", j)
	roiManager("Measure");
	updateResults;

}

for (j=0; j<nROIs; j++) {

	
	Stack.setChannel(2);
	roiManager("select", j)
	roiManager("Measure");
	updateResults;

}

for (j=0; j<nROIs; j++) {

	
	Stack.setChannel(3);
	roiManager("select", j)
	roiManager("Measure");
	updateResults;

}

Background

Hello everyone,
I have a z-projection image with 3 channels and a set of ROIs. I would like to measure the intensity of the ROIs in all three channels.
I wrote the above script but it only reads channel 1 and it is not able to select channel2 and 3.
I have tried the script from other images and it works, so I don’t understand what is the problem with this set.

Thanks a lot in advance!

MAX_Composite-blind_0007.zip (2.1 KB)

MAX_Composite-blind_0007.tif (6.0 MB)