20 #ifndef __itkRegionFromReferenceLabelMapFilter_txx
21 #define __itkRegionFromReferenceLabelMapFilter_txx
27 template <
class TInputImage>
32 Superclass::GenerateOutputInformation();
34 this->SetRegion( this->GetReferenceImage()->GetLargestPossibleRegion() );
35 this->GetOutput()->SetLargestPossibleRegion( this->GetRegion() );
39 template <
class TInputImage>
44 itkDebugMacro(
"setting input ReferenceImage to " << image);
45 if( image != static_cast<const ReferenceImageType *>(this->GetInput( 1 )) )
52 template <
class TInputImage>
57 Self * surrogate =
const_cast< Self *
>( this );
59 const DataObject * input = surrogate->ProcessObject::GetInput(1);
63 return referenceImage;
66 template <
class TInputImage>
71 this->Superclass::PrintSelf(os, indent);