SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] SCIRun 1.24.2 MatlabInterface nrrd bug


Chronological Thread 
  • From: "Dr. Harald Fricke" <hfricke@hdz-nrw.de>
  • To: scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] SCIRun 1.24.2 MatlabInterface nrrd bug
  • Date: Mon, 06 Mar 2006 13:41:05 +0100
  • Organization: Herz- und Diabeteszentrum NRW, Bad Oeynhausen

Hello,

I have managed to compile SCIRun on my MacOS 10.4.5 system. The Matlab interface actually works if use_eai is set to true in src/main/main.cc from the 1.24.2 distribution.

However, a bug in src/Packages/MatlabInterface/Dataflow/Modules/DataIO/Matlab.cc prevents SCIRun from reading nrrds back from Matlab. The Matlab "glue" instructions for nrrds are wrong (path to temporary directory included twice). The attached patch fixes the problem.

--
Dr. Harald Fricke       hfricke@hdz-nrw.de      Tel. 05731/97-1843
Institut für Radiologie, Nuklearmedizin und Molekulare Bildgebung
Herz- und Diabeteszentrum Nordrhein-Westfalen
Universitätsklinik der Ruhr-Universität Bochum
Georgstraße 11
32545 Bad Oeynhausen                            www.hdz-nrw.de
--- src/Packages/MatlabInterface/Dataflow/Modules/DataIO/Matlab.cc.orig 
2005-06-23 02:30:15.000000000 +0200
+++ src/Packages/MatlabInterface/Dataflow/Modules/DataIO/Matlab.cc      
2006-03-06 10:12:32.000000000 +0100
@@ -1103,7 +1103,7 @@
                
                        ostringstream oss;
                        oss << "output_nrrd" << p << ".mat";
-                       output_nrrd_matfile_[p] = temp_directory_ + oss.str();
+                       output_nrrd_matfile_[p] = oss.str();
                        std::string cmd;
                        cmd = "if exist('" + output_nrrd_name_list_[p] + 
"','var'), save " + file_transfer_->remote_file(output_nrrd_matfile_[p]) + " 
" + output_nrrd_name_list_[p] + "; end\n";
                        m_file << cmd;



  • [SCIRUN-USERS] SCIRun 1.24.2 MatlabInterface nrrd bug, Dr. Harald Fricke, 03/06/2006

Archive powered by MHonArc 2.6.16.

Top of page