Created
October 11, 2012 14:13
-
-
Save rendicahya/3872597 to your computer and use it in GitHub Desktop.
ImageJ Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File file = new File(path); | |
if (file.exists()) { | |
ImagePlus image = IJ.openImage(file.getAbsolutePath()); | |
ImagePlus[] split = ChannelSplitter.split(image); | |
if (split != null) { | |
System.out.println("SPLIT OK"); | |
} else { | |
System.err.println("SPLIT NULL"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
here is an example Javascript to extract G channel.
'hela-cells.tif' is a RGB image you could download by File > Sample Images > hela-cells.tif.
You could test the above script by
Plugins > New > Javascript
and then copy& paste the code above, then
Macros > Evaluate Javascript
Kota