Type Alias: ContourSegmentationAnnotationData
ContourSegmentationAnnotationData:
object
Type declaration
autoGenerated?
optional
autoGenerated:boolean
data
data:
object
data.contour
contour:
object
data.contour.originalPolyline?
optional
originalPolyline:Types.Point3
[]
The original polyline before livewire, to show comparison with regenerated data (eg based on spline or livewire changes).
data.segmentation
segmentation:
object
data.segmentation.segmentationId
segmentationId:
string
data.segmentation.segmentIndex
segmentIndex:
number
handles?
optional
handles:object
handles.interpolationSources?
optional
interpolationSources:Types.IPointsManager
<Types.Point3
>[]
Segmentation contours can be interpolated between slices to produce intermediate data. The interpolation sources are source data for the interpolation corresponding to the handle points. The object will have the kIndex assigned so that one can determine relative slice locations that the handles are in originally.
This does NOT necessarily correspond to the handles used on the original source data, but is the set of point uses to interpolate the current handles. That is, for linear interpolation:
handles.points[i] = linear(interpolationSources[0].getPoint(i),
interpolationSources[1].getPoint(i));
These are sometimes required for things like livewire which need to update the handle position with a snap to nearest live point or can be used as an indicator that interpolation has taken place.
interpolationCompleted?
optional
interpolationCompleted:boolean
interpolationUID?
optional
interpolationUID:string
metadata?
optional
metadata:object
metadata.originalToolName?
optional
originalToolName:string
The original name of the tool before adding/removing holes and contours
onInterpolationComplete()?
optional
onInterpolationComplete: (annotation
) =>unknown
This is called when interpolation is performed, and can be used to add data specific settings to the annotation instance.
Parameters
• annotation: ContourSegmentationAnnotation
Returns
unknown