필터 지우기
필터 지우기

How to find object is vertically or horizontally symmetry ?

조회 수: 3 (최근 30일)
Shivang Patel
Shivang Patel 2015년 2월 4일
댓글: Shivang Patel 2015년 2월 4일
i want to find symmetry mainly for character... handwritten . Like "A", "H" are the vertically symmetry and same as "C","K" are the horizontally... so how i find that this latter is symmetry. And how it also work with object have some angle...Because handwritten characters have some angles...
Thanks in advance.
Images like...
and

채택된 답변

Rusty
Rusty 2015년 2월 4일
편집: Rusty 2015년 2월 4일
let the matrix be A
if A== fliplr(A)
%this means that it has vertical symmetry
disp(' it is vertically symmetrical ');
end
if A==flipud(A)
%this means that it has horizontal symmetry
disp(' it is horizontally symmetrical ');
end
  댓글 수: 1
Shivang Patel
Shivang Patel 2015년 2월 4일
First to Thanks for descriptive replay.
As i mention, I want this for handwritten character. and handwritten characters have some angle.... this thing not working with it...

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by