Package qupath.ext.biop.cellpose
Class OpCreators
java.lang.Object
qupath.ext.biop.cellpose.OpCreators
Helper class for creating new ImageOps based upon other image properties.
This addresses that problem that every ImageOp
only knows about the image tile that it
'sees' at runtime.
This means that all processing needs to be local.
Often, we want ops to use information from across the entire image - particularly for normalization as a step in preprocessing, such as when normalizing to zero mean and unit variance across the entire image.
Before this class, this was problematic because either the parameters needed to be calculated elsewhere (which was awkward), or else normalization would always treat each image tile independent - which could result in tiles within the same image being normalized in very different ways.
- Since:
- v0.4.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for aOpCreators.TileOpCreator
that can be used for image preprocessing using min/max percentiles or zero-mean-unit-variance normalization.static class
Tile op creator that computes offset and scale values across the full image to normalize using min and max percentiles.static interface
Helper class for creating (tile-based) ImageOps with parameters that are derived from an entire image or ROI.static class
Tile op creator that computes offset and scale values across the full image to normalize to zero mean and unit variance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild a normalization op that can be based upon the entire (2D) image, rather than only local tiles.
-
Constructor Details
-
OpCreators
public OpCreators()
-
-
Method Details
-
imageNormalizationBuilder
Build a normalization op that can be based upon the entire (2D) image, rather than only local tiles.Note that currently this requires downsampling the image to a manageable size.
- Returns:
-