Segmentation getBounds

All Slicer features are available using Python scripting. See examples in the script repository.

I’m not sure I understand the question. Please use segment and segmentation terms as defined here to make things more clear. If possible, also add a few pictures to explain what you would like to do.