필터 지우기
필터 지우기

How to rotate all images that have different slant to be in a straight line ?

조회 수: 1 (최근 30일)
Najwa Samlan
Najwa Samlan 2019년 10월 8일
편집: Najwa Samlan 2019년 10월 8일
Hi there. So, hee is my example:-
Screenshot (239).png
I have different image, different angle of rotation. So haw can I rotate all images using only 1 code? Right now, I can only rotate 1 signature
function pushbutton2_Callback(hObject, eventdata, handles)
image1= getimage(handles.axes1)
bw1=imresize(image1,[128 256])
%binarization
bw1=im2double(bw1);
bw1 = im2bw(bw1,0.90);
%thinning
BW3=bwmorph(~bw1,'thin',0.9)
J = imrotate(BW3,-8,'bilinear','crop');
%display result at axes2
axes(handles.axes2)
imshow(J)
  댓글 수: 2
darova
darova 2019년 10월 8일
All signatures have the same angle of rotation?
Najwa Samlan
Najwa Samlan 2019년 10월 8일
편집: Najwa Samlan 2019년 10월 8일
No, different signatures has different rotate angle

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by