finding skew angle of license plate

2 views (last 30 days)
Omikar
Omikar on 16 Dec 2011
Commented: mahiuddin kamal on 28 Feb 2017
following is the bit of code for finding skew angle in horizontal direction.. Can someone please explain ?
for i=-44:44
m=tan(i*pi/180);
for j=-r+1:r-1
for k=-c+1:c-1
if (round((m*(k))+j+r+r)<=0)
v=1;
elseif(round((m*(k))+j+r+r)>2*r-1)
u=1;
else
q=w(round((m*(k))+j+r+r),k+c);
z(j+r,i+45)=z(j+r,i+45)+ double(q);
end
end
end
end
  2 Comments
Ashish Uthama
Ashish Uthama on 16 Dec 2011
Omikar, I formatted the code for you. (Please consider using the the '{} code' button in your next question to make it readable)

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!