ImageJ1-ImageJ2 cheat sheet

Revision as of 06:59, 30 June 2018 by Kouichicnakamura (talk | contribs) (Kouichicnakamura moved page Image1 Image2 cheat sheet to ImageJ1-ImageJ2 cheat sheet: typo)

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
ImageJ ij = new net.imagej.ImageJ();
Show images
Convert image types
ImagePlus imp = ImageJFunctions.wrap(img,"Title");
Img<T> realImg = ImageJFunctions.wrapReal(imp);
Img<FloatType> floatImg = ImageJFunctions.convertFloat(imp);
Img<FloatType> realImg2 = ImageJFunctions.wrap(imp);

See also