Created
November 29, 2015 02:04
-
-
Save soh-i/e37007cf8833b41bd507 to your computer and use it in GitHub Desktop.
Opening images by ImageJ
This file contains hidden or 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
| // 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