ddd_pylib.image_manip.

ResampleIsotropicOperator#

class ddd_pylib.image_manip.ResampleIsotropicOperator[source]#

Bases: RescaleOperator

Artificially makes isotropic the voxels of a 3D image by resampling it. The scale is determined automatically based on the main image’s scale.

Methods

getPrefix()[source]#

Prefix added to the input image name to generate the output image name.

Return type:

str

getScale()[source]#

Return the new scale in which the image will be rescaled

Return type:

dict

sanityCheck()[source]#

Simple check to prevent simple error, it may be implemented in subclasses to check more precise stuff

setScale(scale)[source]#

Set the scale factor of each dimensions

Parameters:

scale – Dictionary with axis as keys and their scale factor as values