# Match segmentation to volume for deep learning training

**URL:** https://discourse.slicer.org/t/match-segmentation-to-volume-for-deep-learning-training/31588
**Category:** Development
**Tags:** segmentation
**Created:** [September 6, 2023, 10:40am UTC](https://discourse.slicer.org/t/match-segmentation-to-volume-for-deep-learning-training/31588 "2023-09-06T10:40:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![liyuaaan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/liyuaaan/32/67439_2.png) [@liyuaaan](https://discourse.slicer.org/u/liyuaaan)
#### Post date: [September 6, 2023, 10:40am UTC](https://discourse.slicer.org/t/match-segmentation-to-volume-for-deep-learning-training/31588/1 "2023-09-06T10:40:45Z")

</div>

Hi,  
I have a question regarding the padding of 3d images (.nii.gz). Say my volume dimension is [512, 512,273] , my segmentation is [183, 263, 374], they have different origins and coordinates. And then, I want my segmentation to match volume for deep learning training. Any suggestions?

Thank you so much!!!

---

<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: [September 6, 2023, 6:55pm UTC](https://discourse.slicer.org/t/match-segmentation-to-volume-for-deep-learning-training/31588/2 "2023-09-06T18:55:49Z")

</div>

If you use a newer version of Slicer the exported segmentations should match the source volumes by default.
