class
ImageResamplerResample an image to a given spatial resolution.
Contents
Base classes
- class ProcessObject
- Abstract base class for all process objects.
Derived classes
- class IsotropicResampler
- Resample an image so that the the pixel spacing is equal in both directions.
Constructors, destructors, conversion operators
- ImageResampler() protected
Public functions
- auto create(float spacingX, float spacingY, float spacingZ, bool useInterpolation) -> std::shared_ptr<ImageResampler>
- Create instance.
- void setOutputSpacing(float spacingX, float spacingY)
- void setOutputSpacing(float spacingX, float spacingY, float spacingZ)
- void setInterpolation(bool useInterpolation)
- void loadAttributes() virtual
Protected functions
- auto processImage(std::shared_ptr<Image> input) -> std::shared_ptr<Image>
Protected variables
- Vector3f mSpacing
Private functions
- void execute() virtual
Function documentation
std::shared_ptr<ImageResampler> fast:: ImageResampler:: create(float spacingX,
float spacingY,
float spacingZ,
bool useInterpolation)
Create instance.
Parameters | |
---|---|
spacingX | Pixel spacing in x direction |
spacingY | Pixel spacing in y direction |
spacingZ | Pixel spacing in z direction |
useInterpolation | Whether to use linear interpolation, or just nearest neighbor. |
Returns | instance |