lazyslide.models.tile_prediction.cv_features.HaralickTexture#
- class HaralickTexture(distances=None, angles=None, levels=8)#
Bases:
_CVFeaturesCalculate texture features using Gray Level Co-occurrence Matrix (GLCM).
This class implements Haralick texture features which are derived from the GLCM. These features provide information about the texture of an image and are widely used in image analysis.
The tile can be in shape (H, W, C) for a single image or (B, C, H, W) for a batch of images.
- Parameters:
- distanceslist of int
List of pixel pair distance offsets.
- angleslist of float
List of pixel pair angles in radians.
- levelsint
Number of gray levels to use in the GLCM.
- :octicon:`check-circle-fill;1em;sd-text-success;`