# Want to get the length width and height of AABB of the labels

**URL:** https://discourse.slicer.org/t/want-to-get-the-length-width-and-height-of-aabb-of-the-labels/37565
**Category:** Support
**Created:** [July 26, 2024, 3:34am UTC](https://discourse.slicer.org/t/want-to-get-the-length-width-and-height-of-aabb-of-the-labels/37565 "2024-07-26T03:34:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hk\_y](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hk_y/32/70063_2.png) [@hk\_y](https://discourse.slicer.org/u/hk_y)
#### Post date: [July 26, 2024, 3:34am UTC](https://discourse.slicer.org/t/want-to-get-the-length-width-and-height-of-aabb-of-the-labels/37565/1 "2024-07-26T03:34:01Z")

</div>

Dear professors, I previously used the Segment Statistics module in Slicer to output the dimensions (length, width, height) of the oriented bounding box (OBB) for a label. It’s really helpful. Now, I want to output the dimensions of the axis-aligned bounding box (AABB) for the same label. What should I do?

---

<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 26, 2024, 4:38am UTC](https://discourse.slicer.org/t/want-to-get-the-length-width-and-height-of-aabb-of-the-labels/37565/2 "2024-07-26T04:38:21Z")

</div>

You could add axis-aligned binding box computation to Segment Statistics module’s Python scripts. It should be fairly easy to do it using `numpy.where`. Let us know if you need help with getting started.
