Login  Register

Re: ImageJ plugins and Matlab MCR

Posted by Nathaniel Ryckman on Jun 23, 2011; 5:48pm
URL: http://imagej.273.s1.nabble.com/ImageJ-plugins-and-Matlab-MCR-tp3684143p3684146.html

The solution to what you are asking for is basically going to be a big hack.

You need to find a way to either:

1) Translate Matlab code to ImageJ code
2) Run Matlab code from ImageJ

The first option is almost an impossibility since ImageJ and Matlab keeps evolving. The interpreter would not be fun to make.

I think that the second option is a possibility, but there might be things that don't work/things you will have to hack.

The plugins imageJ uses are just Java classes. In other words, if you can run Matlab code from Java, then you will have your solution. I did a quick Google search for this capability and found this:

http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html

Also, it appears someone else is trying to form a bridge between Matlab and imageJ. This also seems to go with approach 2, but in a different way then the other link that I gave you http://bigwww.epfl.ch/sage/soft/mij/

Good luck! That will be really neat if you are able to get the bridge between Matlab and imageJ to work!

Heerpa wrote
Ovidiu Dan Iancu wrote
Hello all,

I have developed an img processing application (in Matlab) which I would
like to make available as an ImageJ plugin. I plan to use MATLAB Builder JA
to transform my Matlab code into Java classes, and then build the plugin.

Does anyone know if I can distribute the Matlab MCR as part of the plugin?

My experience with Java is very limited. Any suggestions would be greatly
appreciated.

                         Dan

Hi all,

I know I am answering to an old post but that is exactly what I wouldlike to do. I just do not know how.
I have written several image processing procedures in matlab, and I wouldlike to make them available as ImageJ plugins. How can i do this?
I found tutorials on how to write plugins in java, but I cannot call this code like {public void run(ImageProcessor ip)} from matlab, can I.

the tutorial on how to use netbeans
http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:how_to_set_up_netbeans_to_work_with_imagej_and_matlab_together
seemed to help, but still I dont know how to access images in my m files..

MIJ (http://bigwww.epfl.ch/sage/soft/mij/) seems not to be of interest to me because it is the wrong direction, because I want the user to work in ImageJ.

Unfortunately, I have no experience in java whatsoever..

cheers, H