[Insight-users] FEM registration

369328686 369328686 at qq.com
Mon Sep 26 04:07:47 EDT 2011


hi;
excuse me;
Recently, I use the code folded in   *:\*\ITK\src\InsightToolkit-3.20.0\Examples\Registration\DeformableRegistration1.cxx;
the relative configuration file folded in  *:\*\ITK\src\InsightToolkit3.20.0\Examples\Data\FiniteElementRegistrationParameters1.txt;
when I build the solution,it works well.


It  deal with 2D image, Seen in  FiniteElementRegistrationParameters1.txt,we can proof it from the follow information,
the first is,
                     1 1    	% Scaling at lowest level of pyramid
the second is,
                    ../../Insight/Examples/Data/RatLungSlice1.mha  % ReferenceFileName
                    ../../Insight/Examples/Data/RatLungSlice2.mha  % TargetFileName





Now,I want to deal with 3D images, so I just do changes  as follow:
the first is,
                     1 1 1   	% Scaling at lowest level of pyramid
the second is,

                    F:/Tangtang/artery/zeng_yu_lan/zeng_yu_lan_10846_5_.hdr
                    F:/Tangtang/vein/zeng_yu_lan/zeng_yu_lan_10846_8_.hdr



after done this, I build the solution, and then debug. But the win32 console desk shows:


Reading config file...*:\*\ITK\src\InsightToolkit3.20.0\Examples\Data\FiniteElementRegistrationParameters1.txt
Example configured. E 4 rho 10000
reading moving
reading fixed 
Exception caught during reference file reading


itk::ImageFileReaderException <00ADF8a0>
location: "void __this call itk::ImageFileReader<class itk:: unsigned char,2>,class itk::DefaultConvertPixelTraits<unsigned char>>::GenerateOutputInforamtion<Void>"
File: d:\home\itk\src\insighttoolkit-3.20.0\code\itkImageReader.txx
line:100
Description:FileName must be specified




I don't know how to solve this problem.
hoping you can help me.
thx.


Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110926/899b0c2f/attachment.htm>


More information about the Insight-users mailing list