Segment tissue from a WSI.
Uses the GPU to perform a simple threshold-based tissue/glass segmentation of a WSI. Since glass is almost white, the thresold is the distance from the pixels color to white (255,255,255). A morphological closing (dilation+erosion) is performed after thresholding.
- 0: ImagePyramid WSI
- 0: Segmentation tissue mask
- class ProcessObject
- Abstract base class for all process objects.
- void execute() override
TissueSegmentation:: create(int threshold,
|threshold||Threshold for distance from white (255,255,255) to be considered as tissue.|
|dilationSize||Size of dilation to perform after thresholding|
|erosionSize||Size of erosion to perform after thresholding|
|Returns||A tissue segmentation instance Set single threshold for pixel filtering based on the distance a RGB-triplet is from the color white. Default is 85|
Create an instance of TissueSegmentation
TissueSegmentation:: getThreshold() const
Get current threshold value
TissueSegmentation:: setDilate(int radius)
Set radius for disk used in morphological dilation. Default is 9
TissueSegmentation:: getDilate() const
Get current dilation value
TissueSegmentation:: setErode(int radius)
Set radius for disk used in morphological erosion. Default is 9
TissueSegmentation:: getErode() const
Get current erosion value