Dear image.sc community,
once again I turn to you for help. I ran into a strange occurrence I can’t explain.
Given a simple RGB color image such as below I want analyze the colocalization of the red and green channel using the JACoP plugin.
When I do the steps manually everything works like a charm, however when I write a macro for it I get the following error:
Here is a the core of the macro:
title=getTitle; thresholds = newArray(70,50); roiManager("reset"); run("Duplicate...", "title=threshold" ); run("Split Channels"); selectWindow("threshold (blue)"); close(); selectWindow("threshold (green)"); rename("green"); selectWindow("threshold (red)"); rename("red"); run("JACoP ", "imga=[green] imgb=[red] thra="+thresholds+" thrb="+thresholds+" pearson mm");
Any idea of what is wrong/missing in the macro that the plugin throws the error? My version of Fiji doesn’t have a specific “RGB split” function, that’s why I use “split channel”.
Thanks in advance!!