dcnum.feat.feat_contour.moments
Attributes
Functions
|
Compute moment-based features for a mask image |
Module Contents
- dcnum.feat.feat_contour.moments.cv2
- dcnum.feat.feat_contour.moments.moments_based_features(mask: numpy.ndarray, pixel_size: float, ret_contour: bool = False)[source]
Compute moment-based features for a mask image
- Parameters:
mask (np.ndarray) – 3D stack of 2D boolean mask images to analyze
pixel_size (float) – pixel size of the mask image in µm
ret_contour (bool) – whether to also return the raw contour