how can I do ROTATION OPERATION for both row and column

1 次查看(过去 30 天)
I want to make shifting for row and column. how can I do that?

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-11-24
编辑:KALYAN ACHARJYA 2018-11-24
result=rot90(input_mat)
Check imrotate also.

更多回答(2 个)

madhan ravi
madhan ravi 2018-11-24
编辑:madhan ravi 2018-11-24

Image Analyst
Image Analyst 2018-11-27
编辑:Image Analyst 2018-11-27
Really depends on what "rotation" means to you.
  1. Try imtranslate() if you want to shift the image by some number of rows and columns, with no wrap around of edges to the opposite side.
  2. Try circshift() if you want to shift the image with edges wrapping around.
  3. Try imrotate if you want to spin the image around it's center.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by