ddd_pylib.image_manip.fast_fourier_transform_operator.

ImageOperator#

class ddd_pylib.image_manip.fast_fourier_transform_operator.ImageOperator[source]#

Bases: BaseOperator

Gives all the common functions that all Operator that use images will use. It provides an image attribute which stock the main image used and a result attribute which stock the result of the function used.

Parameters:
  • _mainImage – Take a DataArray defining the image

  • _result – Store the result of the function used, its form may vary depending of the function

Methods

getMainImage()[source]#

Return the main image as a DataArray

Return type:

DataArray

getNTimePoints()[source]#

Return the size of the T axis if it exist, if not then just 1

Return type:

int

getOutputDims()[source]#
Return type:

List[str]

makeResultName(t=None)[source]#

Create the result name using the image name and the getPrefix function of the used operator

Return type:

str

sanityCheck()[source]#

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

setMainImage(image)[source]#

Take an image and store it in the _mainImage attribute

Parameters:

image (DataArray) – An image as a DataArray