Package qupath.opencv.ops
Class ImageOps.Channels
java.lang.Object
qupath.opencv.ops.ImageOps.Channels
- Enclosing class:
ImageOps
Channel and color operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageOp
deconvolve
(ColorDeconvolutionStains stains) Apply the (fixed) color deconvolution stains to an image.static ImageOp
extract
(int... channels) Extract or rearrange channels by index.static ImageOp
maximum()
Calculate the maximum value along all channels, to give a single-channel output.static ImageOp
mean()
Average all channels together using the mean, to give a single-channel output.static ImageOp
minimum()
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.
-
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:
-