2
$\begingroup$

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.

$\endgroup$
3
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.