Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
ITK filter that resamples/stitches multiple images into a given reference geometry. More...
#include <itkStitchImageFilter.h>
Public Types | |
typedef StitchImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef TOutputImage | OutputImageType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef ImageBase< itkGetStaticConstMacro(ImageDimension) > | ImageBaseType |
typedef Transform< TTransformPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > | TransformType |
typedef TransformType::ConstPointer | TransformPointerType |
typedef DataObjectDecorator< TransformType > | DecoratedTransformType |
typedef DecoratedTransformType::Pointer | DecoratedTransformPointer |
typedef InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > | InterpolatorType |
typedef InterpolatorType::Pointer | InterpolatorPointerType |
typedef InterpolatorType::OutputType | InterpolatorOutputType |
typedef DefaultConvertPixelTraits< InterpolatorOutputType > | InterpolatorConvertType |
typedef InterpolatorConvertType::ComponentType | ComponentType |
typedef LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > | LinearInterpolatorType |
typedef LinearInterpolatorType::Pointer | LinearInterpolatorPointerType |
typedef Size< itkGetStaticConstMacro(ImageDimension) > | SizeType |
typedef TOutputImage::IndexType | IndexType |
typedef InterpolatorType::PointType | PointType |
typedef TOutputImage::PixelType | PixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef DefaultConvertPixelTraits< PixelType > | PixelConvertType |
typedef PixelConvertType::ComponentType | PixelComponentType |
typedef ContinuousIndex< TTransformPrecisionType, ImageDimension > | ContinuousInputIndexType |
typedef TOutputImage::RegionType | OutputImageRegionType |
typedef TOutputImage::SpacingType | SpacingType |
typedef TOutputImage::PointType | OriginPointType |
typedef TOutputImage::DirectionType | DirectionType |
typedef ImageBase< ImageDimension > | ReferenceImageBaseType |
Public Member Functions | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension) | |
void | SetInput (const InputImageType *image) override |
void | SetInput (unsigned int index, const InputImageType *image) override |
virtual void | SetInput (unsigned int index, const InputImageType *image, const TransformType *transform) |
virtual void | SetInput (unsigned int index, const InputImageType *image, const TransformType *transform, InterpolatorType *interpolator) |
const TransformType * | GetTransform (unsigned int index) const |
const InterpolatorType * | GetInterpolator (unsigned int index) const |
virtual void | SetSize (SizeType _arg) |
virtual const SizeType & | GetSize () |
virtual void | SetDefaultPixelValue (PixelType _arg) |
virtual const PixelType & | GetDefaultPixelValue () |
virtual void | SetOutputSpacing (SpacingType _arg) |
virtual void | SetOutputSpacing (const double *values) |
virtual const SpacingType & | GetOutputSpacing () |
virtual void | SetOutputOrigin (OriginPointType _arg) |
virtual void | SetOutputOrigin (const double *values) |
virtual const OriginPointType & | GetOutputOrigin () |
virtual void | SetOutputDirection (DirectionType _arg) |
virtual const DirectionType & | GetOutputDirection () |
void | SetOutputParametersFromImage (const ImageBaseType *image) |
virtual void | SetOutputStartIndex (IndexType _arg) |
virtual const IndexType & | GetOutputStartIndex () |
itkSetInputMacro (ReferenceImage, ReferenceImageBaseType) | |
itkGetInputMacro (ReferenceImage, ReferenceImageBaseType) | |
virtual void | SetUseReferenceImage (bool _arg) |
virtual void | UseReferenceImageOn () |
virtual void | UseReferenceImageOff () |
virtual bool | GetUseReferenceImage () const |
virtual void | SetStitchStrategy (StitchStrategy _arg) |
virtual StitchStrategy | GetStitchStrategy () const |
virtual void | GenerateOutputInformation () ITK_OVERRIDE |
virtual void | GenerateInputRequestedRegion () ITK_OVERRIDE |
virtual void | BeforeThreadedGenerateData () ITK_OVERRIDE |
virtual void | AfterThreadedGenerateData () ITK_OVERRIDE |
ModifiedTimeType | GetMTime (void) const ITK_OVERRIDE |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
StitchImageFilter () | |
~StitchImageFilter () ITK_OVERRIDE | |
void | PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE |
virtual void | VerifyInputInformation () const ITK_OVERRIDE |
virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE |
virtual PixelType | CastPixelWithBoundsChecking (const InterpolatorOutputType value, const ComponentType minComponent, const ComponentType maxComponent) const |
void | SetTransform (unsigned int index, const TransformType *transform) |
void | EnsureTransforms () |
void | EnsureInterpolators () |
Static Protected Member Functions | |
static std::string | GetTransformInputName (unsigned int index) |
ITK filter that resamples/stitches multiple images into a given reference geometry.
StitchImageFilter is similar to itk's ResampleImageFilter, but in difference to the last mentioned StitchImageFilter is able to resample multiple input images at once (with a transform for each input image). If multiple input images cover the output region the behavior depends on the StitchStragy:
All other behaviors are similar to itk::ResampleImageFilter. See the filter's description for more details.
Definition at line 63 of file itkStitchImageFilter.h.
typedef InterpolatorConvertType::ComponentType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::ComponentType |
Definition at line 115 of file itkStitchImageFilter.h.
typedef SmartPointer< const Self > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::ConstPointer |
Definition at line 71 of file itkStitchImageFilter.h.
typedef ContinuousIndex< TTransformPrecisionType, ImageDimension > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::ContinuousInputIndexType |
Input pixel continuous index typdef
Definition at line 142 of file itkStitchImageFilter.h.
typedef DecoratedTransformType::Pointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::DecoratedTransformPointer |
Definition at line 103 of file itkStitchImageFilter.h.
typedef DataObjectDecorator<TransformType> itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::DecoratedTransformType |
Definition at line 102 of file itkStitchImageFilter.h.
typedef TOutputImage::DirectionType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::DirectionType |
Definition at line 150 of file itkStitchImageFilter.h.
typedef ImageBase< itkGetStaticConstMacro(ImageDimension) > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::ImageBaseType |
base type for images of the current ImageDimension
Definition at line 93 of file itkStitchImageFilter.h.
typedef TOutputImage::IndexType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::IndexType |
Image index typedef.
Definition at line 126 of file itkStitchImageFilter.h.
typedef InputImageType::ConstPointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InputImageConstPointer |
Definition at line 76 of file itkStitchImageFilter.h.
typedef InputImageType::Pointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InputImagePointer |
Definition at line 75 of file itkStitchImageFilter.h.
typedef InputImageType::RegionType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InputImageRegionType |
Definition at line 78 of file itkStitchImageFilter.h.
typedef TInputImage itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InputImageType |
Definition at line 73 of file itkStitchImageFilter.h.
typedef TInputImage::PixelType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InputPixelType |
Definition at line 134 of file itkStitchImageFilter.h.
typedef DefaultConvertPixelTraits< InterpolatorOutputType > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InterpolatorConvertType |
Definition at line 113 of file itkStitchImageFilter.h.
typedef InterpolatorType::OutputType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InterpolatorOutputType |
Definition at line 111 of file itkStitchImageFilter.h.
typedef InterpolatorType::Pointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InterpolatorPointerType |
Definition at line 109 of file itkStitchImageFilter.h.
typedef InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::InterpolatorType |
Interpolator typedef.
Definition at line 108 of file itkStitchImageFilter.h.
typedef LinearInterpolatorType::Pointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::LinearInterpolatorPointerType |
Definition at line 120 of file itkStitchImageFilter.h.
typedef LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::LinearInterpolatorType |
Definition at line 118 of file itkStitchImageFilter.h.
typedef TOutputImage::PointType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::OriginPointType |
Definition at line 149 of file itkStitchImageFilter.h.
typedef OutputImageType::Pointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::OutputImagePointer |
Definition at line 77 of file itkStitchImageFilter.h.
typedef TOutputImage::RegionType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::OutputImageRegionType |
Typedef to describe the output image region type.
Definition at line 145 of file itkStitchImageFilter.h.
typedef TOutputImage itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::OutputImageType |
Definition at line 74 of file itkStitchImageFilter.h.
typedef PixelConvertType::ComponentType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::PixelComponentType |
Definition at line 138 of file itkStitchImageFilter.h.
typedef DefaultConvertPixelTraits<PixelType> itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::PixelConvertType |
Definition at line 136 of file itkStitchImageFilter.h.
typedef TOutputImage::PixelType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::PixelType |
Image pixel value typedef.
Definition at line 133 of file itkStitchImageFilter.h.
typedef SmartPointer< Self > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::Pointer |
Definition at line 70 of file itkStitchImageFilter.h.
typedef InterpolatorType::PointType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::PointType |
Image point typedef.
Definition at line 129 of file itkStitchImageFilter.h.
typedef ImageBase<ImageDimension> itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::ReferenceImageBaseType |
Typedef the reference image type to be the ImageBase of the OutputImageType
Definition at line 155 of file itkStitchImageFilter.h.
typedef StitchImageFilter itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::Self |
Standard class typedefs.
Definition at line 68 of file itkStitchImageFilter.h.
typedef Size< itkGetStaticConstMacro(ImageDimension) > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::SizeType |
Image size typedef.
Definition at line 123 of file itkStitchImageFilter.h.
typedef TOutputImage::SpacingType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::SpacingType |
Image spacing,origin and direction typedef
Definition at line 148 of file itkStitchImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::Superclass |
Definition at line 69 of file itkStitchImageFilter.h.
typedef TransformType::ConstPointer itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::TransformPointerType |
Definition at line 101 of file itkStitchImageFilter.h.
typedef Transform< TTransformPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::TransformType |
Transform typedef.
Definition at line 100 of file itkStitchImageFilter.h.
|
protected |
|
inlineprotected |
Definition at line 260 of file itkStitchImageFilter.h.
|
virtual |
Set the state of the filter after multi-threading.
|
virtual |
Set up state of filter before multi-threading. InterpolatorType::SetInputImage is not thread-safe and hence has to be set up before ThreadedGenerateData
|
protectedvirtual |
Cast pixel from interpolator output to PixelType.
|
protected |
Helper that ensures that an interpolator is specified for every input image. If a input image has no specified interpolator, a linear interpolator will be created and set as default.
|
protected |
Helper that ensures that a transform is specified for every input image. If a input image has no specified transforms, an identity transform will be created and set as default.
|
virtual |
StitchImageFilter needs a different input requested region than the output requested region. As such, StitchImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
|
virtual |
StitchImageFilter 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.
|
virtual |
Run-time type information (and related methods).
|
virtual |
const InterpolatorType* itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::GetInterpolator | ( | unsigned int | index | ) | const |
ModifiedTimeType itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::GetMTime | ( | void | ) | const |
Compute the Modified Time based on the changed components.
|
virtual |
|
virtual |
Get the output image origin.
|
virtual |
Get the output image spacing.
|
virtual |
Get the start index of the output largest possible region.
|
virtual |
|
virtual |
const TransformType* itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::GetTransform | ( | unsigned int | index | ) | const |
|
staticprotected |
|
virtual |
itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::itkGetInputMacro | ( | ReferenceImage | , |
ReferenceImageBaseType | |||
) |
Get the reference image that is defining the output information.
itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::itkSetInputMacro | ( | ReferenceImage | , |
ReferenceImageBaseType | |||
) |
Set a reference image to use to define the output information. By default, output information is specified through the SetOutputSpacing, Origin, and Direction methods. Alternatively, this method can be used to specify an image from which to copy the information. UseReferenceImageOn must be set to utilize the reference image.
itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned int | , | ||
TOutputImage::ImageDimension | |||
) |
Number of dimensions.
itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::itkStaticConstMacro | ( | InputImageDimension | , |
unsigned int | , | ||
TInputImage::ImageDimension | |||
) |
|
static |
Method for creation through the object factory.
|
protected |
|
virtual |
Get/Set the pixel value when a transformed pixel is outside of the image. The default default pixel value is 0.
|
override |
|
override |
|
virtual |
Convenience methods that allows setting of input image and its transform in one call.
|
virtual |
|
virtual |
Set the output direction cosine matrix.
|
virtual |
|
virtual |
Set the output image origin.
void itk::StitchImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType, TTransformPrecisionType >::SetOutputParametersFromImage | ( | const ImageBaseType * | image | ) |
Helper method to set the output parameters based on this image.
|
virtual |
|
virtual |
Set the output image spacing.
|
virtual |
Set the start index of the output largest possible region. The default is an index of all zeros.
|
virtual |
Get/Set the size of the output image.
|
virtual |
|
protected |
|
virtual |
Turn on/off whether a specified reference image should be used to define the output information.
|
protectedvirtual |
StitchImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
|
virtual |
|
virtual |
|
inlineprotectedvirtual |
Override VeriyInputInformation() since this filter's inputs do not need to occoupy the same physical space.
Definition at line 268 of file itkStitchImageFilter.h.