# CT and PET coregistration with alternating results

**URL:** <https://discourse.itk.org/t/ct-and-pet-coregistration-with-alternating-results/5691>\
**Category:** Beginner Questions\
**Tags:** simpleitk, registration, python\
**Created:** [February 10, 2023, 10:36am UTC](https://discourse.itk.org/t/ct-and-pet-coregistration-with-alternating-results/5691 "2023-02-10T10:36:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mihail.isakov](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@mihail.isakov](https://discourse.itk.org/u/mihail.isakov)\
**Post date:** [February 11, 2023, 1:39pm UTC](https://discourse.itk.org/t/ct-and-pet-coregistration-with-alternating-results/5691/4 "2023-02-11T13:39:41Z")

</div>

Are you sure that fixed-moving approach is required? CT / PET should be aligned in physical space. You could check _Frame of Reference UID_s of the series (if they were not messed by a bad anonymizer).  
S. this @zivy [post](https://discourse.itk.org/t/compose-image-from-different-modality-with-different-number-of-slices/2286/8)

The essential line is

```auto
# Resample PET onto CT grid using default interpolator and identity transformation.
pet_image_resampled = sitk.Resample(pet_image, ct_image)

```

---

_[View the full topic](https://discourse.itk.org/t/ct-and-pet-coregistration-with-alternating-results/5691)._
