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 withtarget_shape`
Args:
target_shape: Shape of the mask
Returns:
-
ndarray–Mask with
self.contouron 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