# define default layers for all CT scans 

**URL:** <https://discourse.slicer.org/t/define-default-layers-for-all-ct-scans/7363>\
**Category:** Support\
**Tags:** segmentation, dicom\
**Created:** [June 30, 2019, 1:21pm UTC](https://discourse.slicer.org/t/define-default-layers-for-all-ct-scans/7363 "2019-06-30T13:21:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.tavallaie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/a.tavallaie/32/4046_2.png) [@a.tavallaie](https://discourse.slicer.org/u/a.tavallaie)\
**Post date:** [June 30, 2019, 1:21pm UTC](https://discourse.slicer.org/t/define-default-layers-for-all-ct-scans/7363/1 "2019-06-30T13:21:25Z")

</div>

I have almost 800 brain CT scan that I should label them same as segmentation, so define segments for each of them is too time-consuming. is there any approach to make default segments ( tissue, bone, etc) for all files?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 30, 2019, 3:05pm UTC](https://discourse.slicer.org/t/define-default-layers-for-all-ct-scans/7363/2 "2019-06-30T15:05:12Z")

</div>

There’s nothing out of the box for that right now. You’d need to write some kind of batch script and maybe use some of the segment editor effects to do things like thresholding. You could start by looking at the case iterator extension.

[https://www.slicer.org/wiki/Documentation/Nightly/Extensions/SlicerCaseIterator](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/SlicerCaseIterator)
