Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Rotation with respect to a point (2D)

Subject: Rotation with respect to a point (2D)

From: Osman Ba?kaya

Date: 13 Dec, 2010 20:08:08

Message: 1 of 3

Hi all,

I have an image. I should rotate this image with respect to the specific point which I chose before. imrotate is not working because, imrotate* function rotate an image with respect to center point that image.

------
*IMROTATE Rotate image.
 B = IMROTATE(A,ANGLE) rotates image A by ANGLE degrees in a
 counterclockwise direction around its center point.

Subject: Rotation with respect to a point (2D)

From: Sean de

Date: 13 Dec, 2010 20:21:05

Message: 2 of 3

"Osman Ba?kaya" <thyme.exe@gmail.com> wrote in message <ie5uf8$1kf$1@fred.mathworks.com>...
> Hi all,
>
> I have an image. I should rotate this image with respect to the specific point which I chose before. imrotate is not working because, imrotate* function rotate an image with respect to center point that image.
>
> ------
> *IMROTATE Rotate image.
> B = IMROTATE(A,ANGLE) rotates image A by ANGLE degrees in a
> counterclockwise direction around its center point.

Well, one easy way would be to zero-pad your image so that the selected point is the center.

Subject: Rotation with respect to a point (2D)

From: Matt J

Date: 13 Dec, 2010 20:43:20

Message: 3 of 3

"Osman Ba?kaya" <thyme.exe@gmail.com> wrote in message <ie5uf8$1kf$1@fred.mathworks.com>...
> Hi all,
>
> I have an image. I should rotate this image with respect to the specific point which I chose before. imrotate is not working because, imrotate* function rotate an image with respect to center point that image.
=====

Consider imtransform() or interp2()

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us