Closed longchingkwok331 closed 7 months ago
this example snippet might help:
import numpy as np
import pylidc
scan = pylidc.query(pylidc.Scan).first()
annotation_groups = scan.cluster_annotations()
for group in annotation_groups:
print(np.mean([annotation.contour_slice_indices.mean() for annotation in group]))
# prints:
# 25.375
# 46.5
# 47.5
# 67.625
You can also use the Annotation.centroid
and Annotation.contours_matrix
properties.
thank you very much
Hi, there a GUI for visualizing the scans and some meta information by using _scan.visualize(annotationgroups=nods)
However, is it possible to extract the information about the slice number of annotation e.g. nodule 1, near slice 25 how can I extract this information using the pulidc functions?
Thank you