Converting .stl files to binary label maps in .nii format using Python

A post was merged into an existing topic: stl file stores the annotation results of CT data, and I want to convert it to nii format for deep learning.