Skip to content

Instantly share code, notes, and snippets.

@miura
Forked from rendicahya/gist:3872597
Created October 11, 2012 14:33
Show Gist options
  • Save miura/3872805 to your computer and use it in GitHub Desktop.
Save miura/3872805 to your computer and use it in GitHub Desktop.
ImageJ Problem
File file = new File(path);
if (file.exists()) {
ImagePlus image = IJ.openImage(file.getAbsolutePath());
System.out.println(image.getTitle());
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