# Volume cropping CT images using lung masks

**URL:** <https://discourse.slicer.org/t/volume-cropping-ct-images-using-lung-masks/28155>\
**Category:** Support\
**Tags:** segmentation, masking, cropping, lung\
**Created:** [March 3, 2023, 2:19pm UTC](https://discourse.slicer.org/t/volume-cropping-ct-images-using-lung-masks/28155 "2023-03-03T14:19:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vahdane](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@Vahdane](https://discourse.slicer.org/u/Vahdane)\
**Post date:** [March 3, 2023, 2:19pm UTC](https://discourse.slicer.org/t/volume-cropping-ct-images-using-lung-masks/28155/1 "2023-03-03T14:19:11Z")

</div>

Hello,

I want to crop the lung CT image to lobe subregions by using lung masks. I have the masks, however, as far as I know, we can only crop the image to a rectangular shape in the _crop volume_ module.

Thanks for your help in advance,  
Vahdaneh

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [March 3, 2023, 2:34pm UTC](https://discourse.slicer.org/t/volume-cropping-ct-images-using-lung-masks/28155/2 "2023-03-03T14:34:31Z")

</div>

You can use the “Mask volume” tool in the Segment Editor to do exactly this.

You may need to install Segment Editor Extra Effects; I always have it installed and I don’t remember if the base Slicer has this tool or not.

---

<div class="post-metadata">

**Author:** ![Vahdane](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@Vahdane](https://discourse.slicer.org/u/Vahdane)\
**Post date:** [March 3, 2023, 2:58pm UTC](https://discourse.slicer.org/t/volume-cropping-ct-images-using-lung-masks/28155/3 "2023-03-03T14:58:55Z")

</div>

Many thanks for your help! 😊
