# I want to rotate my image by a given angle.

**URL:** <https://discourse.itk.org/t/i-want-to-rotate-my-image-by-a-given-angle/3370>\
**Category:** Uncategorized\
**Created:** [August 8, 2020, 4:01pm UTC](https://discourse.itk.org/t/i-want-to-rotate-my-image-by-a-given-angle/3370 "2020-08-08T16:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unicorn](https://discourse.itk.org/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@unicorn](https://discourse.itk.org/u/unicorn)\
**Post date:** [August 8, 2020, 4:01pm UTC](https://discourse.itk.org/t/i-want-to-rotate-my-image-by-a-given-angle/3370/1 "2020-08-08T16:01:18Z")

</div>

I don’t actually get this concept of rotation. Does it happen about the origin? or about the centre of the image? Which coordinates?  
Which transform should I use for rotation when I have only angle of rotation. and my image is a label map with only one large object in it.  
What I want is, when I rotate, only the object alone has to rotate, it should not change its location

---

<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:** [August 10, 2020, 1:03pm UTC](https://discourse.itk.org/t/i-want-to-rotate-my-image-by-a-given-angle/3370/2 "2020-08-10T13:03:52Z")

</div>

Most ITK transforms have center of rotation property, which is coordinate origin (0,0,0) by default. Frequently, center is the only fixed parameter. You probably want to calculate center of your object, and set that as the transform’s center.
