image thumbnail
from shape recognition(many shape) by Trieu Nguyen Ta
with this you can recognize many shape;but only symetrical shape

T=sobel(I)
function T=sobel(I)
H1=[1 1 1;0 0 0;-1 -1 -1]
H2=[1 0 -1;1 0 -1;1 0 -1]
B=rgb2gray(I)
A=im2bw(B)
T=nhanchap1(A,H1)
S=nhanchap1(A,H2)
H=(T.^2+S.^2).^0.5
imshow(H)

Contact us at files@mathworks.com