patchextraction¶

This file defines patch extraction methods for deep learning models.

Functions

get_patch_extractor

Return a patch extractor object as requested.

validate_shape

Test if the shape is valid for an image.

Classes

ExtractorParams

A subclass of TypedDict.

PatchExtractor

Class for extracting and merging patches in standard and whole-slide images.

PatchExtractorABC

Abstract base class for Patch Extraction in tiatoolbox.

PointsPatchExtractor

Extracting patches with specified points as a centre.

PointsPatchExtractorParams

A subclass of TypedDict.

SlidingWindowPatchExtractor

Extract patches using sliding fixed sized window for images and labels.

SlidingWindowPatchExtractorParams

A subclass of TypedDict.