Sorry, I need more specific information than this to be able to help.
You can get help on usage of any commands by using help
command. For example: help(slicer.util.arrayFromSegment)
.
See complete example here: Area of segment in a given slice? - #3 by lassoan