[Insight-users] Hello World Registration

Antonio Gómez Barquero agb1 at alu.upct.es
Tue Nov 15 03:19:26 EST 2011


Can you please put here the code of the writer filter?

Thanks

Antonio

-----Mensaje original-----
De: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] En
nombre de Pushpitha Atapattu
Enviado el: martes, 15 de noviembre de 2011 1:40
Para: David Doria
CC: insight-users at itk.org
Asunto: Re: [Insight-users] Hello World Registration

Thank you David for your respond.

I am still having trouble executing 'Hello World Registration' Example. As
per your advice I have placed the two images in the build directory.

The two images are;
> BrainProtonDensitySliceBorder20.png
> BrainProtonDensitySliceShifted13x17y.png

My command arguments to execute the above example is as below:
BrainProtonDensitySliceBorder20 BrainProtonDensitySliceShifted13x17y
differenceImageAfter

However, in the ImageRegistration1.cxx source code at
fixedImageReader->Update();

I am getting error
'Unhandled exception at 0x7732fbae in ImageRegistration1.exe: Microsoft C++
exception: itk::ImageFileReaderException at memory location 0x013bf9c4..'

can anyone please help me to resolve this error.

Many Thanks
Pushpitha

----- Original Message -----
From: "David Doria" <daviddoria at gmail.com>
To: "Pushpitha Atapattu" <pushpitha at apollomit.com>
Cc: <insight-users at itk.org>
Sent: Tuesday, November 15, 2011 11:04 AM
Subject: Re: [Insight-users] Hello World Registration


2011/11/14 Pushpitha Atapattu <pushpitha at apollomit.com>:
> Hi,
>
> I am new to ITK and would be grateful if someone could give me a hand in
> below question.
>
> I am trying to execute the ''Hello World" Registration example provided 
> with
> the 'insightToolkit-3.20.1'.
> The source code of the above example is can be found in the file
> 'Examples/Registration/ImageRegistration1.cxx.'
>
> The above example requires two input images. As the ItkSoftwareGuide
> instructs, I have picked;
>
> BrainProtonDensitySliceBorder20.png
> BrainProtonDensitySliceShifted13x17y.png
>
> Above images are provided in 'insightToolkit-3.20.1' inside
> 'Examples/Data' folder.
>
> However, I can't find the location where I should store these two images 
> for
> the source code to read these images. To elaborate, I copied the above
> source code to a new folder called 'Registration' in my C drive and used
> CMake to build the project. My question is where in 'Registration' folder
> should I save above two images for the source code to read these two 
> images.
>
> I appreciate any help extended on this question.
> Kind regards,
>
> Pushpitha Atapattu
>


You can just place them in your build directory (where your example
binary gets generated) and then hard code the file names into the
example.

David


_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.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