# Compute a MSE metric for a fixed and moving image (manual registration)

**URL:** <https://discourse.itk.org/t/compute-a-mse-metric-for-a-fixed-and-moving-image-manual-registration/5161>\
**Category:** Beginner Questions\
**Tags:** registration, python\
**Created:** [July 5, 2022, 2:28pm UTC](https://discourse.itk.org/t/compute-a-mse-metric-for-a-fixed-and-moving-image-manual-registration/5161 "2022-07-05T14:28:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [July 6, 2022, 7:07am UTC](https://discourse.itk.org/t/compute-a-mse-metric-for-a-fixed-and-moving-image-manual-registration/5161/2 "2022-07-06T07:07:31Z")

</div>

I don’t know whether that is easy using elastix, but it should not be hard using ITK directly. In your double for loop update the origin of the moving image, then manually evaluate the metric. See some related discussions, such as [this](https://discourse.itk.org/t/similarity-measure/4680) and [this](https://discourse.itk.org/t/registration-metric-for-rgb-image/2439).

---

_[View the full topic](https://discourse.itk.org/t/compute-a-mse-metric-for-a-fixed-and-moving-image-manual-registration/5161)._
