2012-04-10 50 views
0

基本上我想創建一個小程序,讓我從一個java的GUI使MATLAB電話如何在MATLAB從Java加載圖像

它主要將被用於圖像處理和去模糊,但我苦苦尋找的方式,將有效地給我從Java年底全面MATLAB控制

我希望它的工作就像這樣:

{ 
    //create matlab execution call 
    String loadImage = " image1 = imread ('imageOnComputer.jpg'); "; 

    //send instruction to matlab and save the path to it so java can 
    //use the newly created variable 
    resultingVariablePath = java.sendInstructionToMatlab(loadImage); 

    //display on the screen 
    java.displayImage(resultingVariablePath); 
} 

基本上我只是想,如果找出有是一個matlab插件(或者一些java包)授予你(幾乎)完全控制matlab。

回答

1

,討論這可以很容易地通過使用matlabcontrol來完成。對於你的情況,最好的方法是MatlabProxy的returningEval

1

這裏是一個post

+0

會做出很好的評論(如果一些上下文被添加到鏈接)。 – 2012-04-10 12:00:38