Writing a custom segmentation extractor, noticed a couple of things
i) self._image_mask is used in later methods but never specific in the base __init__; not a huge deal, but figured I'd include it there to at least demonstrate how to include it during file read
ii) moved an abstractmethod towards the top of the class to make it easier to spot (since it needs to be defined in any child)
Writing a custom segmentation extractor, noticed a couple of things
i)
self._image_mask
is used in later methods but never specific in the base__init__
; not a huge deal, but figured I'd include it there to at least demonstrate how to include it during file readii) moved an
abstractmethod
towards the top of the class to make it easier to spot (since it needs to be defined in any child)