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

**URL:** <https://discourse.slicer.org/t/converting-stl-files-to-binary-label-maps-in-nii-format-using-python/13038>\
**Category:** Support\
**Tags:** segmentation, python, binarylabelmap, stl\
**Created:** [August 17, 2020, 8:29am UTC](https://discourse.slicer.org/t/converting-stl-files-to-binary-label-maps-in-nii-format-using-python/13038 "2020-08-17T08:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 18, 2023, 4:54am UTC](https://discourse.slicer.org/t/converting-stl-files-to-binary-label-maps-in-nii-format-using-python/13038/11 "2023-02-18T04:54:26Z")

</div>

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.](https://discourse.slicer.org/t/stl-file-stores-the-annotation-results-of-ct-data-and-i-want-to-convert-it-to-nii-format-for-deep-learning/27898/2)

---

_[View the full topic](https://discourse.slicer.org/t/converting-stl-files-to-binary-label-maps-in-nii-format-using-python/13038)._
