Finding the minimum value of each sequence

“Hello esteemed folks! I’m a beginner user of Slicer. During development, I need to find the minimum value of each sequence. How can I achieve this using Python? I’ll attach a picture. If my question isn’t clear, I’ll make adjustments. Thank you so much.”

Maybe you mean this?

>>> slicer.app.layoutManager().sliceWidget("Red").sliceController().sliceOffsetSlider().minimum
-138.21430206298828
>>> slicer.app.layoutManager().sliceWidget("Red").sliceController().sliceOffsetSlider().maximum
116.78569793701172
>>> 

If you are trying to determine something like volume bounds you are better off using

bounds = np.zeros(6)
volume_node.GetBounds(bounds)
1 Like

yes right!! thank you very much and have a good day :slight_smile: