Package qupath.opencv.ops
Class ImageOps.Channels
java.lang.Object
qupath.opencv.ops.ImageOps.Channels
- Enclosing class:
- ImageOps
Channel and color operations.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ImageOpdeconvolve(ColorDeconvolutionStains stains) Apply the (fixed) color deconvolution stains to an image.static ImageOpextract(int... channels) Extract or rearrange channels by index.static ImageOpmaximum()Calculate the maximum value along all channels, to give a single-channel output.static ImageOpmean()Average all channels together using the mean, to give a single-channel output.static ImageOpminimum()Calculate the minimum value along all channels, to give a single-channel output.static ImageOprepeat(int numRepeats) Repeat the channels a specified number of times.static ImageOpsum()Add all channels together, to give a single-channel output.
- 
Constructor Details- 
Channelspublic Channels()
 
- 
- 
Method Details- 
deconvolveApply 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:
 
- 
extractExtract or rearrange channels by index.- Parameters:
- channels-
- Returns:
 
- 
repeatRepeat 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:
 
- 
sumAdd all channels together, to give a single-channel output.- Returns:
 
- 
meanAverage all channels together using the mean, to give a single-channel output.- Returns:
 
- 
minimumCalculate the minimum value along all channels, to give a single-channel output.- Returns:
 
- 
maximumCalculate the maximum value along all channels, to give a single-channel output.- Returns:
 
 
-