필터 지우기
필터 지우기

how to represent 30, 60, and 45 degree on matrix in Matlab?

조회 수: 8 (최근 30일)
Prerna Surbhi
Prerna Surbhi 2016년 5월 5일
답변: CS Researcher 2016년 5월 5일
i want to represent 30 degree,60 degree and 90 degree on matlab? just like 45 degree is represented as
[-1,-1,2;-1,2,-1;2,-1,-1]
  댓글 수: 3
Prerna Surbhi
Prerna Surbhi 2016년 5월 5일
i want to implement 30,60 and 90 degree line detection in an image,just like 45 degree line detection can be done by using [-1 -1 2;-1 2 -1;2 -1 -1];
Walter Roberson
Walter Roberson 2016년 5월 5일
How is that matrix being used? Is it, for example, the mask being used for conv2() ?

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

채택된 답변

CS Researcher
CS Researcher 2016년 5월 5일
You should always give out as much information related to your question as you can. Help us to help you. I did not completely understand what you mean by representing angles in MATLAB. It is extremely vague. Do you mean rotation matrix? If yes, then it is given by (for a 3 x 3 case)
R = [ 1 0 0
0 cos(theta) sin(theta)
0 -sin(theta) cos(theta)]
The theta is in radians. How did you get the matrix that you have for 45 degrees?

추가 답변 (0개)

카테고리

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