20 #ifndef __itkPadLabelMapFilter_txx
21 #define __itkPadLabelMapFilter_txx
27 template <
class TInputImage>
32 const TInputImage * inputPtr = this->GetInput();
43 SizeType inputSize = inputPtr->GetLargestPossibleRegion().GetSize();
44 IndexType inputIndex = inputPtr->GetLargestPossibleRegion().GetIndex();
46 SizeType originalPadSize = m_UpperBoundaryPadSize + m_LowerBoundaryPadSize;
48 index = inputIndex - m_LowerBoundaryPadSize;
49 size = inputSize + ( originalPadSize );
51 croppedRegion.SetSize(size);
52 croppedRegion.SetIndex(index);
55 this->SetRegion(croppedRegion);
57 Superclass::GenerateOutputInformation();
61 template <
class TInputImage>
66 Superclass::PrintSelf(os,indent);
68 os << indent <<
"UpperBoundaryPadSize: " << m_UpperBoundaryPadSize << std::endl;
69 os << indent <<
"LowerBoundaryPadSize: " << m_LowerBoundaryPadSize << std::endl;