fast::IsotropicResampler class

Resample an image so that the the pixel spacing is equal in both directions.

This image resampler will resample the image so it has the same spacing in both directions, resulting in an isotropic image. This resampler will select the target spacing from the input image.

If you want to specify exactly which spacing to use, you should use ImageResampler instead.

Inputs:

Outputs:

Base classes

class ImageResampler
Resample an image to a given spatial resolution.

Public types

enum class SpacingSelector { SMALLEST = 0, LARGEST, X, Y, Z }
Which spacing to select.

Public functions

auto create(SpacingSelector spacingSelector, bool useInterpolation) -> std::shared_ptr<IsotropicResampler>
Create instance.
void setSpacingSelector(SpacingSelector spacingSelector)

Private functions

void execute() virtual

Enum documentation

enum class fast::IsotropicResampler::SpacingSelector

Which spacing to select.

Enumerators
SMALLEST

Select smallest spacing

LARGEST

Select largest spacing

X

Select X spacing always

Y

Select Y spacing always

Z

Select Z spacing always

Function documentation

std::shared_ptr<IsotropicResampler> fast::IsotropicResampler::create(SpacingSelector spacingSelector, bool useInterpolation)

Create instance.

Parameters
spacingSelector Which spacing to select from image to use for resampling. Default is smallest.
useInterpolation Whether to use linear interpolation, or just nearest neighbor.
Returns instance