[Insight-users] problem running ITK registration program from within Matlab

pinpress sb_ji at yahoo.com
Sat Nov 22 18:57:05 EST 2008


Hi Koen,

Thanks for your input -- Unfortunately, I still haven't figured out how to
make Matlab link to the right library. So if you could have a look at
exactly what you did to make it work, that'll be much appreciated. Do you
have to "move" matlab library "out of the way"? For myself, I don't think I
will have the user access to move them because Matlab installation on our
Linux is read only. 

By the way, I just want to let everybody know that I had a workaround to
automate the process: I used Matlab to generate a text file (e.g.,
"run_all"), which is composed of a bunch of command lines such as the
following:

../../MI_RigidRegistration fixed.vtk moving_1.vtk start_trans_1.dat
final_trans_1.dat 20 200
../../MI_RigidRegistration fixed.vtk moving_2.vtk start_trans_2.dat
final_trans_2.dat 20 200
..... etc.

Then in Linux shell, I make sure to change the file property:

chmod +x ./run_all

This would allow me to run all those registrations by simply typing:

./run_all

in the appropriate directory. Then you can just have some break and wait for
it to finish. I know this is still not to run ITK programs from within
Matlab per se, but it turns out to be quite handy at least for my case. 


Koen Vermeer-4 wrote:
> 
> Hi,
> 
> Finally something I might be able to contribute to!
> 
> I don't have any experience running ITK registration programs from
> within Matlab, but I do call ITK filter from Matlab. The problem is that
> Matlab uses a different GLIBC than your system. I think I solved it by
> simply moving Matlab's libstdc++ (and some other libs) out of the way
> and creating a link to the systems libstdc++. I cannot access the
> machine on which I did this right now, so if you still have this problem
> after the weekend, let me know and I can look at my setup on Tuesday.
> 
> Best,
> Koen
> 
> 
> On Fri, 2008-11-21 at 10:38 -0800, pinpress wrote:
>> Hi all,
>> 
>> I wonder if anyone here in this forum have had any experience of running
>> ITK
>> registration programs from within Matlab. Because I have a lot of
>> registrations to run, I wrote a simple script to help automate the
>> process.
>> Unfortunately, I got error as the following: 
>> 
>> ../../MI_RigidRegistration:
>> /thayerfs/apps/matlabR2008b/sys/os/glnxa64/libstdc++.so.6: version
>> `GLIBCXX_3.4.9' not found (required by ../../MI_RigidRegistration)
>> 
>> I am pretty sure this is because some environment variables were not set
>> properly.  Any input to make it work will be greatly appreciated. Thanks.
>> 
>> pinpress
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-running-ITK-registration-program-from-within-Matlab-tp20627249p20641875.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list