Cannot use TurboReg plugin by using matlab
Posted by LCY on Dec 01, 2016; 1:43pm
URL: http://imagej.273.s1.nabble.com/Cannot-use-TurboReg-plugin-by-using-matlab-tp5017668.html
Dear all,
I try to align a tiff stack to a tiff template image. The tiff stack contains more than 900 images, so I write a Matlab code to use TurboReg to finish this step. The code is as follow:
MIJ.run('TurboReg ', ['-align ', '-file ',fileNames{1,1},' ','0 0 ', num2str(width),' ',num2str(height),' ',
'-file ',fileNames{2,1},' ','0 0 ',num2str(width),' ', num2str(height) ,' ','-rigidBody ',num2str(width/2),' ',num2str(height/2),' ',num2str(width/2),' ',num2str(height/2),' ','0',num2str(height/2),' ','0 ',num2str(height/2),' ',num2str(width-1),' ',num2str(height/2),' ',num2str(width-1),' ',num2str(height/2),' ','-showOutput']);
However, ImageJ Exception showed as follow:
" ImageJ 1.51h; Java 1.7.0_60 [64-bit]; Windows 8 6.2; 422MB of 3725MB (11%)
java.lang.UnsupportedClassVersionError: HandleExtraFileTypes : Unsupported major.minor version 52.0
This plugin requires Java 1.8 or later."
Fiji outside Matlab showed java' version is 1.8.0_112. But when I launched ImageJ from Matlab, the java version changed to 1.7.0_60.
I have included Fiji's path in Matlab, and I am sure my installation is right. I also updated ImageJ and Fiji many times, but the problem still existed.
Can anyone help me?
Thank you very much!
All the best,
Chunyue