analyze_slice_opencv¶
- formatreader.analyze_slice_opencv(mask, z_pos: float, show_plots=False)¶
OpenCV implementation to obtain the contours present in the slice.
- maskNumpy array
Binary array of the selected slice.
- z_posfloat
Z coordinate of the selected slice.
- show_plotsboolean default = False
If true, shows the contour extraction for the selected slice. Press any key to close the visualization window.
- contours_zidxNumpy array
Returns the coordinates of the points of the contour (X,Y,Z).