how to calculate the angle of rotated image

2 ビュー (過去 30 日間)
Mahmoud Hassan
Mahmoud Hassan 2018 年 10 月 21 日
回答済み: KSSV 2018 年 10 月 22 日

If i have an image that is already rotated ... lets say just like the image attached ... how can i calculate the angle of the rotation and rotate the image again to return it to its normal "straight"

  2 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 21 日
編集済み: madhan ravi 2018 年 10 月 21 日
upload your code
Mahmoud Hassan
Mahmoud Hassan 2018 年 10 月 21 日
bro , my code isn't concerned with what i wanna do now ... if u received this image from a scanner ... how can u rotate this image to make it straight ... and you don't know the angle of rotation

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

回答 (1 件)

KSSV
KSSV 2018 年 10 月 22 日
I = imread('Empreinte3.bmp') ;
I1 = imrotate(I, 90) ;
imshow(I1) ;

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by