b.
Each of the acquired hand images needs to be alignedin a preferred direction so as to capture the samefeatures for matching. The moment orientation methodis applied to the binary image to estimate theorientation of the hand. In the method, the angle of rotation (
θ
) is the difference between normal axis andmajor axis of ellipse that can be computed as follows.
−=
−
2,00,2
1,11
2tan21
µ µ µ θ
(1)
( ) ( )
qpm nqp
nnmm
−−=
∑∑
,
µ
(2)
where
qp
,
µ
represent the (p,q)
th
moment central, and(
nm
,
) represents center of area is defined as
∑∑
=
m n
mN m
1
,
∑∑
=
m n
nN n
1
, (3)where
N
represents number of pixel object.Furthermore, the grayscale and the binary image arerotated
about (
θ
) degree.c.
Bounding box operation is applied to the rotatedbinary image to get the smallest rectangle whichcontains the binary hand image. The original handimage, binarized image, and the bounded imageshown in Figure 1 (a), (b), and (c), respectively.d.
The centroid of bounded image is computed usingequation (3) and based on this centroid, the boundedbinary and original images are segmented with 200 x200 pixels. The segmented image and its centroidposition are shown in Figure 1 (d) and (e).e.
The centroid of the segmented binary image iscomputed and based on this centroid the ROI of grayscale palmprint image can be cropped with size128 x 128 pixels. The first and the second positions of centroid in binary and gray level image are shown inFigure 1 (f) and (g).This method is so simple. This method has been testedfor 1050 palmprint images acquired from 210 persons, andthe results show this method is reliable.Before the feature extraction phase, the extracted ROIare normalized using normalization method in [11] toreduce the possible imperfections in the image due to non-uniform illumination. The method is as below:
otherwiseyxI if
yxI
d d
φ λ φ λ φ
>
−+=
),(),('
(4)
ρ φ ρ λ
2
}),({
−=
yxI
d
(5)
where
I
and
I’
represents original grayscale palmprintimage and the normalized image respectively,
φ
and
ρ
represents mean and variance of the original imagerespectively, while
φ
d
and
ρ
d
are the desired values formean and variance respectively. This research use
φ
d
= 180and
ρ
d
= 180 for all experiments.
(a) (b) (c)(d) (e) (f) (g)
Figure 1. Extraction of palmprint, (a) original image, (b)binary image of (a), (c) object bounded, (d) and (e)position of the first centroid mass in segmented binary andgray level image, respectively, (f) and (g) position of thesecond centroid mass in segmented binary and gray levelimage, respectively.IV. FEATURES EXTRACTIONThere are three main steps to extract the palmprintfeatures based on fractal codes proposed in this paper.These steps can be explained as follows.
A.
Extraction of fractal codes of palmprint images
Fractal codes of palmprint images are obtained usingthe partitioned iterated function system (PIFS) method. InPIFS method, each image is partitioned into its rangeblocks and domain blocks. The size of the domain blocksis usually larger than the size of the range blocks. Therelation between a pair of range block (
R
i
) and domainblock (
D
i
) is noted as
( )
iii
DwR
=
(6)
w
i
is contracted mapping that describes the similarityrelation between
R
i
and
D
i
, and is usually defined as anaffine transformation as below:
+
=
iiiiiiiiiiiiiii
of ezyxsd cbazyxw
0000
(7)
where
x
i
and
y
i
represent top-left coordinate of the
R
i
, and
z
i
is the brightness value of its block. Matrix elements
a
i
,
b
i
, c
i
,
and
d
i
, are the parameters of spatial rotations andflips of
D
i
,
s
i
is the contrast scaling and
o
i
is the luminanceoffset. Vector elements
e
i
and
f
i
are offset value of space.In this paper, we used the size of domain region twice therange size, so the values of
a
i
,
b
i
, c
i
,
and
d
i
are 0.5. Theactual fractal code p
i
below is usually used in practice[19].
iiiiRRDDi
ossizeyxyxf
iiii
,,,,,,,
θ
=
(8)
(IJCSIS) International Journal of Computer Science and Information Security,Vol. 9, No. 2, February 201148 http://sites.google.com/site/ijcsis/ISSN 1947-5500