MIJ: Running ImageJ and Fiji within Matlab

Version 1.5.0.0 (12.6 KB) by Sage
MIJ allows to exchange data between ImageJ and Matlab for image processing and image analysis
6.2K Downloads
Updated 26 Sep 2017

View License

MIJ offers the missing link between imaging software: ImageJ, Fiji and Matlab. MIJ is a Java package mij.jar that provides static methods to convert images (2D) and volumes (3D) in Matlab arrays. MIJ allows also to access to all built-in functions of ImageJ and to third-part plugins of ImageJ. Thanks to the Fiji team, MIJ is now super-easy to use with a Matlab script Miji.m which is integrated in Fiji. With MIJ, ImageJ acts as an image-processing library of Matlab.
Reference
Daniel Sage, Dimiter Prodanov, Jean-Yves Tinevez and Johannes Schindelin, "MIJ: Making Interoperability Between ImageJ and Matlab Possible", ImageJ User & Developer Conference, 24-26 October 2012, Luxembourg.
http://bigwww.epfl.ch/publications/sage1205.html
More Information
http://bigwww.epfl.ch/sage/soft/mij/

Installation
1) Put mij.jar into the java directory of Matlab (e.g for Window Machine 'C:\Program Files\MATLAB\R2009b\java\').
2) Copy also ij.jar (ImageJ) in the java directory of Matlab. Get this file from the ImageJ website: http://rsb.info.nih.gov/ij/
3) Extend the java classpath to mij.jar, e.g using the Matlab command: javaaddpath 'C:\Program Files\MATLAB\R2009b\java\mij.jar'.
4) Extend the java classpath to ij.jar, e.g using the Matlab command: javaaddpath 'C:\Program Files\MATLAB\R2009b\java\ij.jar'.
5) Start MIJ by running the Matlab command: MIJ.start; or MIJ.start("imagej-path");

Java Source Code
http://bigwww.epfl.ch/sage/soft/mij/MIJ.java

Cite As

Sage (2024). MIJ: Running ImageJ and Fiji within Matlab (https://www.mathworks.com/matlabcentral/fileexchange/47545-mij-running-imagej-and-fiji-within-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on External Language Interfaces in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.5.0.0

Update reference
Add link to source code
Title change
Update
Update link

1.4.0.0

Title correction

1.3.0.0

Description update

1.2.0.0

Description update

1.1.0.0

Description update

1.0.0.0