fast::ImageResampler class

Resample an image to a given spatial resolution.

Base classes

class ProcessObject
Abstract base class for all process objects.

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

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