Scilab Function
Last update : 31/10/2005
hitmiss - Skeleton of binary
images
Calling Sequence
-
[Qout,WLE,WC,WS] =
hitmiss(Qin)
Parameters
-
Qin
: Binary Matrix with elements of {0,1}.
-
Qout
: The skeleton of the input image.
-
WLE
: matrix with line end points
-
WC
: matrix with crossing points
-
WS
: matrix with singular points
Description
-
This function implements a hit and miss algorithm which can be used
to create skeletons of a binary input image.
Examples
x=linspace(-%pi,%pi,200); y=x;
[X,Y]=meshgrid(x,y);
R=sqrt(X .^2 + Y .^2);
Z=sin(4 .*(R .^2));
Zbin=bool2s(Z>0.75);
[Zout,w1,w2,w3]=hitmiss(Zbin);
See Also
maskand
,
shiftmat
,
Authors
-
Dr. Andreas Geissler geisslea@web.de
Used Function
shiftmatmaskand