I read this interesting kernel on kaggle. I learned that you can make a 3D plot starting from CT sections. Is there a way to calculate the volume of the lungs or other structures you plot using 3d_plot? I couldn't find any reference so I need help.
Interesting question! I'm assuming you have a bunch of points $(X, Y, Z)$ plotting the lung you want to measure. So your question is actually the measure of a convex hull.
Checkout scipy.spatial.ConvexHull. The
ConvexHull object has a
volumn attribute which indicates the column of the convex hull you want. It supports N dimensions, which your question is about three dimensions.