# Calculate angle between two segments

**URL:** https://discourse.slicer.org/t/calculate-angle-between-two-segments/12412
**Category:** Support
**Created:** [July 7, 2020, 9:39am UTC](https://discourse.slicer.org/t/calculate-angle-between-two-segments/12412 "2020-07-07T09:39:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [July 7, 2020, 4:27pm UTC](https://discourse.slicer.org/t/calculate-angle-between-two-segments/12412/5 "2020-07-07T16:27:57Z")

</div>

Segment Statistics module solves this very nicely: it can compute oriented bounding box and principal axes directions for each segment, directly from the segmentation.

> [@New Segment Statistics: Oriented Bounding Box, Diameter and More](https://discourse.slicer.org/t/new-segment-statistics-oriented-bounding-box-diameter-and-more/10203):
>
> New statistics have been added to the Segment Statistics module: Centroid Oriented bounding box Feret diameter Perimeter Roundness Flatness Elongation Principal axes/moments These statistics are not enabled by default. To enable them, click on the “Options” button beside the “Labelmap Statistics” checkbox, and select the statistics that you would like calculated from the popup window. You can read the documentation for the Segment Statistics module [here](https://slicer.readthedocs.io/en/latest/user_guide/module_segmentstatistics.html). Oriented bounding box:

---

_[View the full topic](https://discourse.slicer.org/t/calculate-angle-between-two-segments/12412)._
