You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existing functionality: When using SlidingWindowPatchExtractor, we can specify min_mask_ratio to filter out patches with little tissue.
Proposed feature: When computing features with DeepFeatureExtractor, we rely on the SemanticSegmentor.filter_coordinates() method, which, as far as I understand based on the definition of sel_func(), needs just one pixel from the patch to be within the mask for the patch to be selected.
Benefit: Adding min_mask_ratio can significantly speed up the feature computation by filtering out patches that mostly contain background pixels in advance.
The text was updated successfully, but these errors were encountered:
Description
Existing functionality: When using
SlidingWindowPatchExtractor
, we can specifymin_mask_ratio
to filter out patches with little tissue.Proposed feature: When computing features with
DeepFeatureExtractor
, we rely on theSemanticSegmentor.filter_coordinates()
method, which, as far as I understand based on the definition ofsel_func()
, needs just one pixel from the patch to be within the mask for the patch to be selected.tiatoolbox/tiatoolbox/models/engine/semantic_segmentor.py
Lines 634 to 708 in 0ddd2b1
Benefit: Adding
min_mask_ratio
can significantly speed up the feature computation by filtering out patches that mostly contain background pixels in advance.The text was updated successfully, but these errors were encountered: