18 #ifndef itkChangeInformationImageFilter_h
19 #define itkChangeInformationImageFilter_h
48 template<
typename TInputImage >
91 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
105 if ( image != m_ReferenceImage )
107 m_ReferenceImage = image;
114 itkGetModifiableObjectMacro(ReferenceImage, TInputImage);
116 itkSetMacro(UseReferenceImage,
bool);
117 itkBooleanMacro(UseReferenceImage);
118 itkGetConstMacro(UseReferenceImage,
bool);
123 itkSetMacro(OutputSpacing, SpacingType);
124 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
131 itkGetConstReferenceMacro(OutputOrigin,
PointType);
149 itkSetMacro(OutputOffset, OutputImageOffsetType);
150 itkGetConstReferenceMacro(OutputOffset, OutputImageOffsetType);
151 itkSetVectorMacro(OutputOffset, OutputImageOffsetValueType, ImageDimension);
157 this->ChangeSpacingOn();
158 this->ChangeOriginOn();
159 this->ChangeDirectionOn();
160 this->ChangeRegionOn();
168 this->ChangeSpacingOff();
169 this->ChangeOriginOff();
170 this->ChangeDirectionOff();
171 this->ChangeRegionOff();
181 itkSetMacro(ChangeSpacing,
bool);
182 itkBooleanMacro(ChangeSpacing);
183 itkGetConstMacro(ChangeSpacing,
bool);
191 itkSetMacro(ChangeOrigin,
bool);
192 itkBooleanMacro(ChangeOrigin);
193 itkGetConstMacro(ChangeOrigin,
bool);
201 itkSetMacro(ChangeDirection,
bool);
202 itkBooleanMacro(ChangeDirection);
203 itkGetConstMacro(ChangeDirection,
bool);
207 itkSetMacro(ChangeRegion,
bool);
208 itkBooleanMacro(ChangeRegion);
209 itkGetConstMacro(ChangeRegion,
bool);
214 itkSetMacro(CenterImage,
bool);
215 itkBooleanMacro(CenterImage);
216 itkGetConstMacro(CenterImage,
bool);
220 void GenerateOutputInformation()
override;
223 void GenerateInputRequestedRegion()
override;
226 void GenerateData()
override;
232 void PrintSelf(std::ostream & os,
Indent indent)
const override;
260 #ifndef ITK_MANUAL_INSTANTIATION
261 #include "itkChangeInformationImageFilter.hxx"
Light weight base class for most itk classes.
ImageBaseType::SizeType SizeType
ImageBaseType::DirectionType DirectionType
ImageBaseType::IndexType IndexType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
ImageBaseType::RegionType RegionType
signed long OffsetValueType