ImageJ1-ImageJ2 cheat sheet

Revision as of 06:51, 30 June 2018 by Kouichicnakamura (talk | contribs) (Created page with "This page summarizes translation of basic operations of ImageJ1 and ImageJ2 API. Based on the work of Robert Hasse, Scientific Computing Facility, MPI CBG Dresden. {| class="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page summarizes translation of basic operations of ImageJ1 and ImageJ2 API. Based on the work of Robert Hasse, Scientific Computing Facility, MPI CBG Dresden.

Item ImageJ1 ImageJ2
Starting ImageJ
ij.ImageJ
ImageJ ij = new net.imagej.ImageJ();
ij.ui().showUI();
Show images
imagePlus.show()
ij.ui().show(testImg);
ImageJFunctions.show(testImg);
ImageJFunctions.wrap(testImg,"testImg").show();
Convert image types
ImagePlus imp = ImageJFunctions.wrap(img,"Title");
Img<T> realImg = ImageJFunctions.wrapReal(imp);<source>
<source lang="java">Img<FloatType> floatImg = ImageJFunctions.convertFloat(imp);
Img<FloatType> realImg2 = ImageJFunctions.wrap(imp);


See also

https://github.com/mpicbg-scicomp/ij2course-images/blob/master/slides/ij_legacy_cheetsheet.pdf