get_patch_extractor¶
- get_patch_extractor(method_name, **kwargs)[source]¶
Return a patch extractor object as requested.
- Parameters:
method_name (str) – Name of patch extraction method, must be one of “point” or “slidingwindow”. The method name is case-insensitive.
**kwargs – Keyword arguments passed to
PatchExtractor
.
- Returns:
An object with base
PatchExtractor
as base class.- Return type:
Examples
>>> from tiatoolbox.tools.patchextraction import get_patch_extractor >>> # PointsPatchExtractor with default values >>> patch_extract = get_patch_extractor( ... 'point', img_patch_h=200, img_patch_w=200)