ANIMA
4.0
|
#include <animaResampleImageFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef TOutputImage::DirectionType | DirectionType |
typedef itk::ImageBase< itkGetStaticConstMacro(ImageDimension)> | ImageBaseType |
typedef TOutputImage::IndexType | IndexType |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef InputImageType::IndexType | InputIndexType |
typedef TInputImage::PixelType | InputPixelType |
typedef InterpolatorType::Pointer | InterpolatorPointerType |
typedef itk::InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > | InterpolatorType |
typedef itk::MatrixOffsetTransformBase< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> | MatrixTransformType |
typedef TOutputImage::PointType | OriginPointType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef TOutputImage::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::PixelType | PixelType |
typedef itk::SmartPointer< Self > | Pointer |
typedef InterpolatorType::PointType | PointType |
typedef ResampleImageFilter | Self |
typedef itk::Size< itkGetStaticConstMacro(ImageDimension)> | SizeType |
typedef TOutputImage::SpacingType | SpacingType |
typedef itk::ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef TransformType::ConstPointer | TransformPointerType |
typedef itk::Transform< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> | TransformType |
Public Member Functions | |
virtual void | AfterThreadedGenerateData () ITK_OVERRIDE |
virtual void | BeforeThreadedGenerateData () ITK_OVERRIDE |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual void | GenerateInputRequestedRegion () ITK_OVERRIDE |
virtual void | GenerateOutputInformation () ITK_OVERRIDE |
virtual const PixelType & | GetDefaultPixelValue () const |
virtual const InterpolatorType * | GetInterpolator () const |
itk::ModifiedTimeType | GetMTime () const ITK_OVERRIDE |
virtual const char * | GetNameOfClass () const |
virtual const DirectionType & | GetOutputDirection () const |
virtual const OriginPointType & | GetOutputOrigin () const |
virtual const SpacingType & | GetOutputSpacing () const |
virtual const IndexType & | GetOutputStartIndex () const |
const TOutputImage * | GetReferenceImage () const |
virtual const SizeType & | GetSize () const |
virtual const TransformType * | GetTransform () const |
virtual bool | GetUseReferenceImage () const |
virtual void | SetDefaultPixelValue (PixelType _arg) |
virtual void | SetInterpolator (InterpolatorType *_arg) |
virtual void | SetOutputDirection (DirectionType _arg) |
virtual void | SetOutputOrigin (OriginPointType _arg) |
virtual void | SetOutputOrigin (const double *values) |
void | SetOutputParametersFromImage (const ImageBaseType *image) |
virtual void | SetOutputSpacing (SpacingType _arg) |
virtual void | SetOutputSpacing (const double *values) |
virtual void | SetOutputStartIndex (IndexType _arg) |
void | SetReferenceImage (const TOutputImage *image) |
void | SetScaleIntensitiesWithJacobian (bool scale) |
virtual void | SetSize (SizeType _arg) |
void | SetTransform (TransformType *transform) |
virtual void | SetUseReferenceImage (bool _arg) |
virtual void | UseReferenceImageOff () |
virtual void | UseReferenceImageOn () |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
double | ComputeLinearJacobianValue () |
double | ComputeLocalJacobianValue (const InputIndexType &index) |
void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE |
virtual itk::LightObject::Pointer | InternalClone () const ITK_OVERRIDE |
void | PrintSelf (std::ostream &os, itk::Indent indent) const ITK_OVERRIDE |
ResampleImageFilter () | |
virtual | ~ResampleImageFilter () |
Definition at line 16 of file animaResampleImageFilter.h.
typedef itk::SmartPointer<const Self> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ConstPointer |
Definition at line 23 of file animaResampleImageFilter.h.
typedef TOutputImage::DirectionType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DirectionType |
Definition at line 79 of file animaResampleImageFilter.h.
typedef itk::ImageBase<itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ImageBaseType |
base type for images of the current ImageDimension
Definition at line 82 of file animaResampleImageFilter.h.
typedef TOutputImage::IndexType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::IndexType |
Image index typedef.
Definition at line 63 of file animaResampleImageFilter.h.
typedef InputImageType::ConstPointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageConstPointer |
Definition at line 28 of file animaResampleImageFilter.h.
typedef InputImageType::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImagePointer |
Definition at line 27 of file animaResampleImageFilter.h.
typedef InputImageType::RegionType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageRegionType |
Definition at line 30 of file animaResampleImageFilter.h.
typedef TInputImage anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType |
Definition at line 25 of file animaResampleImageFilter.h.
typedef InputImageType::IndexType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputIndexType |
Definition at line 31 of file animaResampleImageFilter.h.
typedef TInputImage::PixelType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputPixelType |
Definition at line 71 of file animaResampleImageFilter.h.
typedef InterpolatorType::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorPointerType |
Definition at line 57 of file animaResampleImageFilter.h.
typedef itk::InterpolateImageFunction<InputImageType, TInterpolatorPrecisionType> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorType |
Interpolator typedef.
Definition at line 56 of file animaResampleImageFilter.h.
typedef itk::MatrixOffsetTransformBase<TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::MatrixTransformType |
Definition at line 53 of file animaResampleImageFilter.h.
typedef TOutputImage::PointType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OriginPointType |
Definition at line 78 of file animaResampleImageFilter.h.
typedef OutputImageType::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImagePointer |
Definition at line 29 of file animaResampleImageFilter.h.
typedef TOutputImage::RegionType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageRegionType |
Typedef to describe the output image region type.
Definition at line 74 of file animaResampleImageFilter.h.
typedef TOutputImage anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType |
Definition at line 26 of file animaResampleImageFilter.h.
typedef TOutputImage::PixelType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelType |
Image pixel value typedef.
Definition at line 70 of file animaResampleImageFilter.h.
typedef itk::SmartPointer<Self> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Pointer |
Definition at line 22 of file animaResampleImageFilter.h.
typedef InterpolatorType::PointType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PointType |
Image point typedef.
Definition at line 66 of file animaResampleImageFilter.h.
typedef ResampleImageFilter anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Self |
Standard class typedefs.
Definition at line 20 of file animaResampleImageFilter.h.
typedef itk::Size<itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SizeType |
Image size typedef.
Definition at line 60 of file animaResampleImageFilter.h.
typedef TOutputImage::SpacingType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SpacingType |
Image spacing,origin and direction typedef
Definition at line 77 of file animaResampleImageFilter.h.
typedef itk::ImageToImageFilter<TInputImage,TOutputImage> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Superclass |
Definition at line 21 of file animaResampleImageFilter.h.
typedef TransformType::ConstPointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformPointerType |
Definition at line 49 of file animaResampleImageFilter.h.
typedef itk::Transform<TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformType |
Transform typedef.
Definition at line 48 of file animaResampleImageFilter.h.
|
protected |
Initialize new instance
Definition at line 22 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PrintSelf().
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetScaleIntensitiesWithJacobian().
|
inlineprotectedvirtual |
Definition at line 190 of file animaResampleImageFilter.h.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ComputeLinearJacobianValue(), anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ComputeLocalJacobianValue(), anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DynamicThreadedGenerateData(), anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalClone(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PrintSelf().
|
virtual |
This method is used to set the state of the filter after multi-threading.
Set up state of filter after multi-threading.
Definition at line 153 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::BeforeThreadedGenerateData().
|
virtual |
This method is used to set the state of the filter before multi-threading.
Set up state of filter before multi-threading. InterpolatorType::SetInputImage is not thread-safe and hence has to be set up before ThreadedGenerateData
Definition at line 133 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetTransform().
|
protected |
|
protected |
Definition at line 426 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ComputeLinearJacobianValue(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~ResampleImageFilter().
virtual::itk::LightObject::Pointer anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CreateAnother | ( | void | ) | const |
|
protected |
ThreadedGenerateData
Definition at line 165 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::AfterThreadedGenerateData(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~ResampleImageFilter().
|
virtual |
ResampleImageFilter needs a different input requested region than the output requested region. As such, ResampleImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Inform pipeline of necessary input image region
Determining the actual input region is non-trivial, especially when we cannot assume anything about the transform being used. So we do the easy thing and request the entire input image.
Definition at line 258 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage().
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DynamicThreadedGenerateData().
|
virtual |
ResampleImageFilter produces an image which is a different size than its input. As such, it needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
Inform pipeline of required output region
Definition at line 332 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime().
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputParametersFromImage().
|
virtual |
Get the pixel value when a transformed pixel is outside of the image
|
virtual |
Get a pointer to the interpolator function.
itk::ModifiedTimeType anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime | ( | ) | const |
Method Compute the Modified Time based on changed to the components.
Verify if any of the components has been modified.
Definition at line 381 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateOutputInformation().
|
virtual |
Run-time type information (and related methods).
|
virtual |
|
virtual |
Get the output image origin.
|
virtual |
Get the output image spacing.
|
virtual |
Get the start index of the output largest possible region.
const ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType * anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage | ( | ) | const |
Set the smart pointer to the reference image that will provide the grid parameters for the output image.
Definition at line 287 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetReferenceImage().
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateInputRequestedRegion().
|
virtual |
Get the size of the output image.
|
virtual |
Get a pointer to the coordinate transform.
|
virtual |
|
protectedvirtual |
Returns a class copy with important specific variables set, not the greatest implementation especially in terms of interpolators and other internal pointers copy (not done here). Use with extreme caution
Definition at line 74 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetScaleIntensitiesWithJacobian().
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PrintSelf(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~ResampleImageFilter().
|
static |
Method for creation through the object factory.
|
protected |
Print out a description of self
Definition at line 48 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalClone().
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ResampleImageFilter(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~ResampleImageFilter().
|
virtual |
Set the pixel value when a transformed pixel is outside of the image. The default default pixel value is 0.
|
virtual |
Set the interpolator function. The default is itk::LinearInterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>. Some other options are itk::NearestNeighborInterpolateImageFunction (useful for binary masks and other images with a small number of possible pixel values), and itk::BSplineInterpolateImageFunction (which provides a higher order of interpolation).
|
virtual |
Set the output direciton cosine matrix.
|
virtual |
Set the output image origin.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputSpacing().
|
virtual |
Set the output image origin.
Definition at line 103 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetTransform().
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputParametersFromImage | ( | const ImageBaseType * | image | ) |
Helper method to set the output parameters based on this image
Definition at line 317 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetReferenceImage().
|
virtual |
Set the output image spacing.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalClone().
|
virtual |
Set the output image spacing.
Definition at line 90 of file animaResampleImageFilter.hxx.
References anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin().
|
virtual |
Set the start index of the output largest possible region. The default is an index of all zeros.
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetReferenceImage | ( | const TOutputImage * | image | ) |
Copy the output information from another Image. By default, the information is specified with the SetOutputSpacing, Origin, and Direction methods. UseReferenceImage must be On and a Reference image must be present to override the defaul behavior. NOTE: This function seems redundant with the SetOutputParametersFromImage( image ) function
Set the smart pointer to the reference image that will provide the grid parameters for the output image.
Definition at line 303 of file animaResampleImageFilter.hxx.
Referenced by anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetReferenceImage().
|
inline |
|
virtual |
Set the size of the output image.
void anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetTransform | ( | TransformType * | transform | ) |
Set the coordinate transformation. Set the coordinate transform to use for resampling. Note that this must be in physical coordinates and it is the output-to-input transform, NOT the input-to-output transform that you might naively expect. By default the filter uses an Identity transform. You must provide a different transform here, before attempting to run the filter, if you do not want to use the default Identity transform.
Definition at line 112 of file animaResampleImageFilter.hxx.
Referenced by anima::PyramidImageFilter< TInputImage, TOutputImage >::CreateLevelImage(), anima::DistortionCorrectionBMRegistrationMethod< TInputImageType >::ResampleImages(), and anima::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetOutputOrigin().
|
virtual |
|
virtual |
|
virtual |
|
static |
Number of dimensions.
Definition at line 41 of file animaResampleImageFilter.h.
|
static |
Definition at line 43 of file animaResampleImageFilter.h.