I don’t have any experience with writing script so I used the built-in recorder.
However I need to add title=getTitle() to the script to make sure it also works for images with another name.
title = getTitle();
selectWindow(" + title + (green) ")
When imageJ splits the channels, three new images are created. I want to select the one in the green channel. How do I correct the error in the third line?
It is like this in the recorder:
selectWindow(“SOM - Chamber 1 + sterile water + 7dpi 26-10-2020-Image Export-01_c1-2.jpg (green)”);