[Insight-users] Hello World Registration
Pushpitha Atapattu
pushpitha at apollomit.com
Mon Nov 14 19:40:07 EST 2011
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
More information about the Insight-users
mailing list