Last active
August 19, 2022 11:11
-
-
Save azarnyx/68c101294fa39bb16f5cd4a89209b4d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from skimage import measure | |
labels = measure.label(mask) | |
props = measure.regionprops(labels, img_hed)[0] | |
angle = props.orientation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment