필터 지우기
필터 지우기

Changing Angle of a LINE in a image

조회 수: 1 (최근 30일)
Tricky
Tricky 2011년 11월 7일
Line in a image is inclined at an angle of 35 degrees. Is it possible to change the inclined angle to zero to make it a straight line.

답변 (1개)

Image Analyst
Image Analyst 2011년 11월 7일
How about imrotate(), imtransform(), or maketform()?
  댓글 수: 2
Tricky
Tricky 2011년 11월 7일
rotatedImg = imrotate(MyImage,45,'bicubic');
By using this I was able to get the line as a straight line as I required but the pixels are changing.
How to overcome this pixel variations
Walter Roberson
Walter Roberson 2011년 11월 7일
Changing the pixel values cannot be helped when you are rotating from a discrete grid on to a discrete grid.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by