I have a 3D segment and I want to extract as much information as possible from the cross-sectional cuts along the segment principal axis. SegmentGeometry module is being very useful, thank you @jmhuie for the great work, but I would be interested in extracting more metrics from each slice, i.e. fitting an ellipse and get its parameters, eccentricity, etc. Is it possible to program custom metrics using the module and python?
Thank you @laurabc for using SegmentGeometry. It’s certainly possible to keep adding metrics that can be computed with the module. Currently, it wouldn’t be very easy for you to do so from the python window in Slicer. Changes would need to be made to the source script directly.
If you know how to programmatically fit an ellipse, I’d be happy to help incorporate that into the module.