Class ColorDeconvolutionNormalizer
java.lang.Object
qupath.lib.images.servers.transforms.ColorDeconvolutionNormalizer
- All Implemented Interfaces:
BufferedImageOp,BufferedImageNormalizer
Normalizes an image by applying color deconvolution to RGB input, rescaling intensities, and using color
'reconvolution' to generate a new RGB image.
- Since:
- v0.6.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorDeconvolutionNormalizercreate(ColorDeconvolutionStains stainsInput, ColorDeconvolutionStains stainsOutput, double... scales) Create a normalizer using color deconvolution and reconvolution.filter(BufferedImage img, BufferedImage output) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.images.servers.transforms.BufferedImageNormalizer
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
-
Method Details
-
create
public static ColorDeconvolutionNormalizer create(ColorDeconvolutionStains stainsInput, ColorDeconvolutionStains stainsOutput, double... scales) Create a normalizer using color deconvolution and reconvolution.- Parameters:
stainsInput- stain vectors to apply to deconvolve the input image, which should relate to the original colorsstainsOutput- stain vectors to apply for reconvolution, determining the output colorsscales- optional array of scale factors to apply to each deconvolved channel. A scale factor of 1.0 will leave the channel unchanged, while a scale of 0.0 will suppress the channel.- Returns:
-
filter
- Specified by:
filterin interfaceBufferedImageOp
-