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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ImageOp
    deconvolve(qupath.lib.color.ColorDeconvolutionStains stains)
    Apply the (fixed) color deconvolution stains to an image.
    static ImageOp
    extract(int... channels)
    Extract or rearrange channels by index.
    static ImageOp
    Calculate the maximum value along all channels, to give a single-channel output.
    static ImageOp
    Average all channels together using the mean, to give a single-channel output.
    static ImageOp
    Calculate the minimum value along all channels, to give a single-channel output.
    static ImageOp
    repeat(int numRepeats)
    Repeat the channels a specified number of times.
    static ImageOp
    sum()
    Add all channels together, to give a single-channel output.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Channels

      public Channels()
  • Method Details

    • deconvolve

      public static ImageOp deconvolve(qupath.lib.color.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: