# rotate the image

**URL:** <https://discourse.itk.org/t/rotate-the-image/3340>\
**Category:** Uncategorized\
**Tags:** simpleitk, registration, python\
**Created:** [July 28, 2020, 8:56am UTC](https://discourse.itk.org/t/rotate-the-image/3340 "2020-07-28T08:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)\
**Post date:** [July 29, 2020, 1:00pm UTC](https://discourse.itk.org/t/rotate-the-image/3340/2 "2020-07-29T13:00:07Z")

</div>

Hello @TJH123456,

This is readily done either via the `MetricEvaluate` method or using the `Exhaustive optimizer` with an observer that records the metric value for each of its evaluations. Please see [this Jupyter notebook](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Python/63_Registration_Initialization.ipynb) section titled “Register using sampling of the parameter space” and [this Jupyter notebook](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Python/69_x-ray-panorama.ipynb) where the exhaustive optimizer is used to plot the similarity metric terrain.

---

_[View the full topic](https://discourse.itk.org/t/rotate-the-image/3340)._
