[Insight-users] ImageRegistration1
Abayiz
abayiz at yahoo.com
Fri May 25 04:04:00 EDT 2012
Hi,
Please try to omit the asterisk, it should be:
registration->SetFixedImageRegion(fixedImageReader->GetOutput()->GetBufferedRegion() );
Abayiz
________________________________
From: Massi <Massinissa.Bandou at USherbrooke.ca>
To: insight-users at itk.org
Sent: Thursday, May 24, 2012 6:13 PM
Subject: [Insight-users] ImageRegistration1
Hi
I tried to compile a registration between two images using
ImageRegistration1.cxx example. When it comes to set the fixed image, I
can't find any member or object *GetBufferedRegion()*
.....
.....
typedef itk::ImageFileReader< FixedImageType > FixedImageReaderType;
typedef itk::ImageFileReader< MovingImageType > MovingImageReaderType;
FixedImageReaderType::Pointer fixedImageReader =
FixedImageReaderType::New();
MovingImageReaderType::Pointer movingImageReader =
MovingImageReaderType::New();
fixedImageReader->SetFileName(FixedImage);
movingImageReader->SetFileName(MovingImage);
registration->SetFixedImage(fixedImageReader->GetOutput());
registration->SetMovingImage(movingImageReader->GetOutput());
fixedImageReader->Update();
registration->SetFixedImageRegion(fixedImageReader->GetOutput()->*GetBufferedRegion()*);
Why this problem?
Thank you
Massi
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ImageRegistration1-tp7575198.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
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.php
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120525/13625779/attachment.htm>
More information about the Insight-users
mailing list