Package qupath.opencv.ops
Class ImageOps.Channels
java.lang.Object
qupath.opencv.ops.ImageOps.Channels
- Enclosing class:
- ImageOps
Channel and color operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
Channels
public Channels()
-
-
Method Details
-
deconvolve
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
Extract or rearrange channels by index.- Parameters:
channels-- Returns:
-
repeat
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
Add all channels together, to give a single-channel output.- Returns:
-
mean
Average all channels together using the mean, to give a single-channel output.- Returns:
-
minimum
Calculate the minimum value along all channels, to give a single-channel output.- Returns:
-
maximum
Calculate the maximum value along all channels, to give a single-channel output.- Returns:
-