Skip to content

Instantly share code, notes, and snippets.

@azarnyx
Last active August 19, 2022 11:11
Show Gist options
  • Save azarnyx/68c101294fa39bb16f5cd4a89209b4d4 to your computer and use it in GitHub Desktop.
Save azarnyx/68c101294fa39bb16f5cd4a89209b4d4 to your computer and use it in GitHub Desktop.
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