Skip to content

Base transform

base_transform #

BaseTransform #

Bases: typing.Generic[imgtools.transforms.base_transform.T_Image], abc.ABC

Abstract base class for image transforms.

Classes inheriting from this must implement the __call__ method that applies a transformation to an image and returns the result.

This class provides a common interface for all transforms in the package, allowing them to be used interchangeably and composed together.

Type Parameters

T_Image The type of image this transform operates on. Defaults to SimpleITK.Image, but can be specialized to any subclass like MedImage or its derivatives.

name property #

name: str

Return the name of the transform class for logging and debugging.

Returns:

Type Description
str

The name of the transform class.