Skip to content

supported_pixel_manipulations

Pixel manipulation methods supported by CAREamics.

SupportedPixelManipulation #

Bases: str, BaseEnum

Supported Noise2Void pixel manipulations.

  • Uniform: Replace masked pixel value by a (uniformly) randomly selected neighbor pixel value.
  • Median: Replace masked pixel value by the mean of the neighborhood.
Source code in src/careamics/config/support/supported_pixel_manipulations.py
class SupportedPixelManipulation(str, BaseEnum):
    """Supported Noise2Void pixel manipulations.

    - Uniform: Replace masked pixel value by a (uniformly) randomly selected neighbor
        pixel value.
    - Median: Replace masked pixel value by the mean of the neighborhood.
    """

    UNIFORM = "uniform"
    MEDIAN = "median"