# How to automatically register batch of lung CT volumes using Python and SlicerElastix extension?

**URL:** <https://discourse.slicer.org/t/how-to-automatically-register-batch-of-lung-ct-volumes-using-python-and-slicerelastix-extension/21727>\
**Category:** Support\
**Tags:** python\
**Created:** [February 1, 2022, 11:15am UTC](https://discourse.slicer.org/t/how-to-automatically-register-batch-of-lung-ct-volumes-using-python-and-slicerelastix-extension/21727 "2022-02-01T11:15:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan6690](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@alan6690](https://discourse.slicer.org/u/alan6690)\
**Post date:** [February 1, 2022, 11:15am UTC](https://discourse.slicer.org/t/how-to-automatically-register-batch-of-lung-ct-volumes-using-python-and-slicerelastix-extension/21727/1 "2022-02-01T11:15:24Z")

</div>

I have around 100 pairs of CT lung volumes to be deformably registered by SlicerElastix extension using its “3D CT, monomodal” modality. All volumes are in nii file format. I now do it one-by-one manually. However each registration takes quite a lot of time, around 15mins, before it can output the volumes. So I am thinking if I can do them all automatically or set up a work sequence with corresponding input volumes using python script under the Python interactor. Any help would be very much appreciated. Thank you.
