7 template <
typename TPixel,
unsigned int VImageDimension>
10 m_DescriptionModel = 0;
13 template <
typename TPixel,
unsigned int VImageDimension>
20 unsigned int imageVectorSize = this->GetVectorLength();
21 m_DescriptionModel = mcm->Clone();
23 if (imageVectorSize != m_DescriptionModel->GetSize())
25 this->SetNumberOfComponentsPerPixel(m_DescriptionModel->GetSize());
30 template <
typename TPixel,
unsigned int VImageDimension>
34 return m_DescriptionModel;
37 template<
typename TPixel,
unsigned int VImageDimension >
41 if(data == ITK_NULLPTR)
44 Superclass::Graft(data);
47 const Self *constImgData = dynamic_cast <
const Self *> (data);
48 Self *imgData = const_cast <
Self *> (constImgData);
52 itkExceptionMacro( <<
"itk::VectorImage::Graft() cannot cast " 53 <<
typeid( data ).name() <<
" to " 54 <<
typeid(
const Self * ).name() );
58 this->SetDescriptionModel(imgData->GetDescriptionModel());
MCMType::Pointer MCMPointer