Dear mitk users,
 
using the mitk::PadImageFilter I run into problems when using a 3D
reference image and a 2D input image. 
 
The problematic code in PadImageFilter::GenerateData is
 
mitk::Image::ConstPointer image = this->GetInput( 0 );
mitk::Image::ConstPointer referenceImage = this->GetInput( 1 );
 
typedef itk::Image< short, 3 > ImageType;
ImageType::Pointer itkImage = ImageType::New();
mitk::CastToItkImage( image, itkImage );
 
where CastToItkImage fails due to a violated assertion (CastToItkImage
calls AccessFixedDimensionByItk_1 which contains the assertion). 
 
How can this problem be fixed?
 
Thank you,
Michael.
 
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to