instancecontour
instancecontour ¶
Module for data classes representing the found error instances in a predicted image
Classes¶
InstanceContour
dataclass
¶
Dataclass that represents a instance contour.
Functions¶
get_contour_mask ¶
Creates a Mask from self.contour with
target_shape`
Args:
target_shape: Shape of the mask
Returns:
-
ndarray
–Mask with
self.contour
on it and the formtarget_shape
.
Source code in niceml/mlcomponents/resultanalyzers/instancefinders/instancecontour.py
intersects_mask ¶
Check if self.contour
intersect with mask
.
Parameters:
-
mask
(ndarray
) –mask to check for intersection
Returns:
-
bool
–True if there is an intersection