How to find object is vertically or horizontally symmetry ?

4 vues (au cours des 30 derniers jours)
Shivang Patel
Shivang Patel le 4 Fév 2015
Commenté : Shivang Patel le 4 Fév 2015
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

Réponse acceptée

Rusty
Rusty le 4 Fév 2015
Modifié(e) : Rusty le 4 Fév 2015
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 commentaire
Shivang Patel
Shivang Patel le 4 Fév 2015
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...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by