Class ImageOps.Channels

java.lang.Object
qupath.opencv.ops.ImageOps.Channels
Enclosing class:
ImageOps

public static class ImageOps.Channels extends Object
Channel and color operations.
  • Constructor Details

    • Channels

      public Channels()
  • Method Details

    • deconvolve

      public static ImageOp deconvolve(ColorDeconvolutionStains stains)
      Apply the (fixed) color deconvolution stains to an image. The input must be a 3-channel image, with values in the range 0-255.
      Parameters:
      stains -
      Returns:
    • extract

      public static ImageOp extract(int... channels)
      Extract or rearrange channels by index.
      Parameters:
      channels -
      Returns:
    • repeat

      public static ImageOp repeat(int numRepeats)
      Repeat the channels a specified number of times. This is useful when wishing to apply arithmetic between a single channel and a multi-channel image.
      Parameters:
      numRepeats -
      Returns:
    • sum

      public static ImageOp sum()
      Add all channels together, to give a single-channel output.
      Returns:
    • mean

      public static ImageOp mean()
      Average all channels together using the mean, to give a single-channel output.
      Returns:
    • minimum

      public static ImageOp minimum()
      Calculate the minimum value along all channels, to give a single-channel output.
      Returns:
    • maximum

      public static ImageOp maximum()
      Calculate the maximum value along all channels, to give a single-channel output.
      Returns: