[Insight-users] Newbie needs help: Inserting the MultiResolutionPyramidImageFilter into a preexisting code

Luis Ibanez luis.ibanez at kitware.com
Thu Feb 19 10:40:37 EST 2009


Hi Mariangela,

Can you please tell use *exactly* what filename did you pass
as input to this program ?

Was the error message just this?:

   "> MetaImage: Read: Cannot open data file  "


normally a filename should follow that message....   :-/

--

I ran it with .mhd images as input and didn't find any problem.

Are you sure that you are placing both the .mhd and .raw files
in the same directory ?

Before running the registration program, you could check the
consistency of the input images by opening them with the
ImageViewer, Slicer, SNAP, ParaView, (among others).

Please let us know,


     Thanks


        Luis


------------------------------------
mariangelalucente at inwind.it wrote:
> Dear Luis,
> many thanks for your suggestions! Your help was very important for the 
> resolution of my problem.
> I compiled the .cxx file you sent me on monday, but while testing the 
> program with two .mha sample images I downloaded from 
> http://public.kitware.com/pub/itk/Data/BrainWeb, I had this error:
> 
> 
> MetaImage: Read: Cannot open data file
> 
> 
> Before your appreciated email, I used to give only .nii images as input 
> to the p
> rogram (and getting .nii image as output): this is the first time I use 
> the .mha
> image format. So:
> 
> 
> 1) maybe you are using a different (newest?) version of the library? 
> Mine is ITK.3.0.0
> 
> 2) which kind of external tool should I use in order to display those 
> .mha images? MRICRON is not usefull..
> 
> 
> King redards (and again: thank you :)!
> 
> 
>>  
>> >> Hi Mari,
>> >> In general lines:
>> >> a) Add the CenteredTransformInitializer
>> >>    in order to initialize the center of rotation of the
>> >> VersorRigid3DTransform.
>> >> b) Add MultiResolution Pyramids (Fixed and Moving)
>> >> c) Replace ImageRegistrationMethod with
>> >> MultiResolutionImageRegistrationMethod
>> >>  Please find attached the modified version of the file.
>> >> You may want to study the diffs between this file and
>> >>    the file that you sent.
>> >>   The attached file was tested with the following input
>> >> ./ImageRegistration
>> >>     brainweb165a10f17.mhd
>> >>     brainweb165a10f17Rot10Tx15.mhd
>> >>     registered.mhd  0 0 0 10 0 0
>> >> (all in a single command line).
>> >>         Regards,
>> >>               Luis
>> >> ---------------------------------------------------------
>> >> On Wed, Feb 11, 2009 at 4:39 PM, Mariangela Lucente <
>> >> mariangelalucente at inwind.it 
> <http://wmail-new.libero.it/src/compose.php?send_to=mariangelalucente%40inwind.it>> 
> wrote:
>> >>      
>> >>> Dear ITK Users,
>> >>> I'm an Insight-newbie and I need your precious help!
>> >>> I'm desperately trying to edit the attached cxx file in order to
>> >>>        
>>  insert
>>  
>> >>> a
>> >>> pyramidal filter (itk::MultiResolutionPyramidImageFilter) into the
>> >>>        
>>  existing
>>  
>> >>> (and already functioning) registration pipeline; I've tried several 
> code
>> >>> combinations, without obtaining anything useful: the introduced 
> pyramidal
>> >>> filter does not work (or it seems doing so)!! :-(
>> >>> Please, can you indicate me which kind of editing operations I should
>> >>>        
>>  perform into the attached file in order to correctly use the
>>  
>> >>> itk::MultiResolutionPyramidImageFilter? Which portions of the existing
>> >>>        
>>  code
>>  
>> >>> should be modified in order to correctly insert the filter? Maybe 
> there's
>> >>> also something to delete cause it 's not needed anymore..
>> >>> If you think it would be useful, I can post you the modified version
>> >>>        
>>  of
>>  
>> >>> the
>> >>> same file (the not-functioning version that contains the pyramidal
>> >>>        
>>  filter..)
>>  
>> >>> I would appreciate any suggestions..
>> >>> Thanks a lot!
>> >>> Cheers,
>> >>> Mari
>> >>> _____________________________________
>> >>> Powered by www.kitware.com
>> >>> Visit other Kitware open-source projects at
>> >>> http://www.kitware.com/opensource/opensource.html
>> >>> Please keep messages on-topic and check the ITK FAQ at:
>> >>> http://www.itk.org/Wiki/ITK_FAQ
>> >>> Follow this link to subscribe/unsubscribe:
>> >>> http://www.itk.org/mailman/listinfo/insight-users
> 


More information about the Insight-users mailing list