Skip to content

Instantly share code, notes, and snippets.

@soh-i
Created November 29, 2015 02:04
Show Gist options
  • Select an option

  • Save soh-i/e37007cf8833b41bd507 to your computer and use it in GitHub Desktop.

Select an option

Save soh-i/e37007cf8833b41bd507 to your computer and use it in GitHub Desktop.
Opening images by ImageJ
// Soh Ishiguro
import ij.ImagePlus;
import ij.io.Opener;
public class Main {
public static ImagePlus openImage(String filepath) {
Opener op = new Opener();
return op.openImage(filepath);
}
public static void main(String[] args) {
System.out.println("opening image...");
String filepath = "/Users/yukke/Desktop/Composite.jpg";
ImagePlus image = openImage(filepath);
image.show();
image.clone();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment