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

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?

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.