Hi guys,
Thanks in advance for your help on this topic.
I am analyzing ratiometric images of cells that have high ratios (pixel intensity) inside the cytosol. The ratio image is a 32bit image made with the Ratio Plus plugin on large fields of view.
I have ROIs for each cell and I can crop a cell of interest to design the macro which I would like to run on the whole image.
So, what am I trying to do?
I need to create a new ROI which outlines the area with high ratios and save it so that for each cell I have an ROI for the whole cell and for the "inner cytosol".
The approach I am using so far is to first find the maxima, then expand the point and measure its spatial momentum to find the region in the middle. This works OK but the area that this macro outlines is round and includes pixels with a low ratio which I don't want.
Here is the code:
run("Find Maxima...", "noise=3.50 output=[Point Selection]");
run("Enlarge...", "enlarge=2");
run("Fit Circle");
roiManager("Add");
do {
roiManager("Select", 0);
roiManager("Measure");
kurt0 = getResult("Kurt");
run("Enlarge...", "enlarge=1");
run("Fit Circle");
roiManager("Add");
roiManager("Select", 1);
roiManager("Measure");
mean = getResult("Mean");
kurt1 = getResult("Kurt");
roiManager("Select", 0);
roiManager("Delete");
} while (mean > 4 && kurt0 > kurt1);
Any suggestion on how to outline the area with a value > x
Thanks,
Giuseppe Lucarelli
PhD student dep. Biochemistry
Monash University Australia