フィルターのクリア

how can I do ROTATION OPERATION for both row and column

1 回表示 (過去 30 日間)
hayat ali
hayat ali 2018 年 11 月 24 日
コメント済み: hayat ali 2018 年 11 月 27 日
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.
  1 件のコメント
hayat ali
hayat ali 2018 年 11 月 27 日
編集済み: hayat ali 2018 年 11 月 27 日
thank you very much

サインインしてコメントする。

その他の回答 (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