Is there any option to rotate an image from the selected pixel as a center point?

I want to rotate an image. But the rotation should be made such that the selected pixel should be the center location of rotation. Can anyone please help me?

 Accepted Answer

3 Comments

I am receiving error like this. "Undefined function or method 'rotateAround' for input arguments of type 'uint8' ". What should I do?
You need to download that function. It is not part of MATLAB, but is a third-party function that you can download for free from MATLAB File Exchange:
  • follow the link that Walter Roberson gave you
  • click Download Zip, save it
  • unzip that zip-file into your MATLAB path (e.g. the current directory)
  • then try it again.
If their submission works well, then go back to that page and give them a rating and a comment. They will appreciate it.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!