You are on page 1of 12

Eng. Rev.

27-2 (2007), 1-11 1


____________________________________________________________________________________________________________________________________________________

UDK 004.932

ODREIVANJE USMJERENOSTI SADRAJA DIGITALNIH SLIKA


KORITENJEM FAN FILTARA
DIRECTIONALITY ASSESSMENT OF DIGITAL IMAGES CONTENT
USING FAN FILTERS

Marino BIBULI Miroslav VRANKI Viktor SUI

Saetak: U ovom je radu predloena metoda odreivanja usmjerenosti sadraja digitalnih slika. U tu su svrhu
projektirane skupine filtara sa svojstvima razliitog proputanja samo odreenih prostornih frekvencija. Podruje
proputanja takvih filtara je klinastog oblika s odreenim zakretom s obzirom na frekvencijske osi. Rezultati
odreivanja usmjerenosti sadraja prikazani su za sintetske slike prostornih valova kao i za neke realne slike.

Kljune rijei: - digitalna obrada slike


- fan filtri
- McClellanova transformacija

Summary: In this paper, we propose a method for assessing the directionality of digital images content. For that
purpose, special filter groups are designed that allow the passage of only predefined spatial frequency content. The
passband of the filters is wedge-shaped with a predetermined rotation with respect to the frequency axes. Directionality
assessment results are presented for both synthetic images of spatial waves and some real-world images.

Keywords: - digital image processing


- fan filters
- McClellan transform

1.UVOD 1.INTRODUCTION
Odreivanje usmjerenosti sadraja digitalnih slika ima Determination of the directionality of digital images
iroke primjene u raznim podrujima poevi od content has found many different applications ranging
prepoznavanja otisaka prstiju pa sve do nadzora oceana. from fingerprint recognition, for example, to ocean
Iako su metode odreivanja usmjerenosti sadraja surveillance applications. Methods for directionality
digitalnih slika u zadnjem desetljeu znatno assessment have evolved significantly in the last decade,
uznapredovale i postale vrlo sofisticirane, u ovom je radu and some have become very sophisticated. Even though it
predloena jedna relativno jednostavna metoda. Iako is rather simple, the method proposed in this paper gives
jednostavna, ova metoda daje dobre rezultate i good results, and it is applicable to a wide range of
primjenjiva je kako na umjetno generiranim tako i na images, from synthetic to real-world images.
realnim slikama. In order to determine directionality of image content,
U svrhu odreivanja usmjerenosti sadraja digitalnih two-dimensional directional filters are designed. Such
slika projektiraju se 2-D usmjereni filtri. Kod takvih filters have a double wedge-shaped passband as shown in
filtara podruje proputanja u domeni frekvencije je u Figure 5. Because of their specific passband shape, these
obliku dvaju klinastih podruja meusobno simetrinih filters are named fan filters.
oko ishodita (slika 5). Zbog takva se oblika ti filtri Using a group of such filters, with a passband of the same
nazivaju jo i fan filtri (engl. fan = lepeza, ventilator). angular width, but having different rotations with respect
S pomou skupine takvih filtara iste kutne irine podruja to the frequency axes, an angle which determines the
proputanja u frekvenciji, ali s razliitim zakretima u odnosu directionality of the image content is obtained. Filtering
na frekvencijske osi odreivat e se kut usmjerenosti of the same image with the group of fan filters results in a
sadraja slike. Filtriranje iste slike sa skupinom takvih filtara collection of images in which only the frequency content
dat e skupinu slika u kojima su zadrane spektralne of a certain direction is maintained. A numerical method
komponente samo odreenih usmjerenosti. Na osnovi tih is developed which uses these images in order to detect
rezultata filtracije razvijena je numerika mjera [1] koja dominant image directions [1]. It is shown that local
dominant image directions can be also derived by using
2 M. Bibuli, M. Vranki, V. Sui: Odreivanje usmjerenosti sadraja
____________________________________________________________________________________________________________________________________________________

odreuje koji su dominantni smjerovi u slici. Kako je the proposed method and splitting the image into a
prikazano u nastavku, primjenom te metode na segmente number of segments. Knowing the localized directionality
slike mogue je odreivanje lokalnih dominantnih of the image is useful, for example, in fingerprint image
smjerova u slici. Takav prikaz orijentacije posebno je analysis in which content (fingerprint lines) is oriented in
zanimljiv na slikama otiska prsta iji je sadraj (linije different directions throughout the image.
otiska) orijentiran u razliitim smjerovima po cijeloj slici.

2. PROJEKTIRANJE 2-D FIR FAN FILTARA 2. DESIGN OF 2-D FIR FAN FILTERS

2-D FIR fan filtri mogu se realizirati s pomou 2-D FIR fan filters can be designed by using the
McClellanove transformacije [2] koja pretvara prototipni McClellan transform [2] which transforms a prototype 1-
1-D filtar u 2-D filtar. Frekvencijski odziv 1-D FIR filtra D filter into a 2-D filter. The frequency response of a
nulte faze moe se zapisati kao: zero-phase 1-D FIR filter can be generally written as:

N
H () = a(n)Tn (cos ) , (1)
n=0

gdje Tn () predstavlja n-ti Chebyshevljev polinom. where Tn () is the n-th order Chebyshev polynomial [2].
Transformacija 1-D filtra u 2-D filtar izvodi se The 1-D to 2-D filter transformation is performed by
supstitucijom varijabli, tj. uvodi se transformacijska variable substitution, i.e. a transformation function is
funkcija koja pretvara 1-D frekvencijsko podruje u 2-D introduced that transforms a 1-D frequency domain into a
frekvencijsko podruje adekvatno za realizaciju 2-D filtra 2-D frequency domain, which is appropriate for 2-D filter
[3], [4]: design [3], [4]:

N
H (1 , 2 ) = H () cos = F (1 , 2 ) = a(n)Tn ( F (1 , 2 )) , (2)
n=0

gdje je F (1 , 2 ) : where F (1 , 2 ) is given as:

F (1 , 2 ) = t00 + t01 cos(1 ) + t10 cos(2 ) + t11 cos(1 ) cos(2 ) . (3)

Stvoreno 2-D frekvencijsko podruje ovisi o parametrima From (3), it can be observed that F(1,2) depends on the
transformacije t00, t01, t10 i t11. Ti parametri povezuju transform parameters t00, t01, t10, and t11. These parameters
lomnu frekvenciju 1-D prototipnog filtra sa eljenim link the cut-off frequency of the 1-D prototype filter with
oblikom frekvencijske karakteristike 2-D filtra. the desired shape of a 2-D filters frequency response.
Transformacijska funkcija stvara 2-D frekvencijsko The transformation function creates a 2-D frequency
podruje u obliku koncentrinih krunica gdje se lomnom domain shaped as concentric rings with the 1-D cut-off
frekvencijom 1-D filtarskog prototipa odreuje propusno frequency determining the pass-band and stop-band of a
i nepropusno podruje filtra (slike 1, 2 i 3). newly designed filter (Figures 1, 2, and 3).


Slika 1. Koncentrine konture za Slika 2. 1-D niskopropusni filtarski Slika 3. 2-D niskopropusni filtar
dobivanje 2-D filtra prototip Figure 3. 2-D low-pass filter
Figure 1. Concentric contours Figure 2. 1-D low-pass filter prototype
needed to obtain a 2-D filter
Eng. Rev. 27-2 (2007), 1-11 3
____________________________________________________________________________________________________________________________________________________

Za razliku od navedenog primjera dizajniranja As opposed to the example of a low-pass filter, fan filters
niskopropusnog filtra, fan filtri proputaju prostorne pass spatial frequencies only for a certain angular
frekvencije samo odreenih kutova, pa parametri bivaju direction, so the transform parameters are obtained in a
odreeni na drukiji nain. Promatrajui relaciju (3) moe different way. Based on the equation (3), a number of
se postaviti niz uvjeta koji omoguavaju realizaciju fan constraints can be derived that enable specification of the
filtra. Budui da je cos 1 , F (1 , 2 ) mora takoer fan filter. Since cos 1 , F (1 , 2 ) must be chosen
zadovoljavati F ( 1 , 2 ) 1 . Ako se usporedi prikaz such that F ( 1 , 2 ) 1 . By comparing the 1-D
1-D frekvencija = 0 i = , u odnosnu na frequencies = 0 and = , with the equivalent 2-D
odgovarajue toke u 2-D frekvencijskom podruju, onda frequency points the transformation parameters that
se parametri od F (1 , 2 ) u relaciji (3) mogu postaviti u define F (1 , 2 ) are found to be related such that:
odnosu:
t 00 = t11
(4)
t10 = 1 + t 01
Da bi se ispunio uvjet nejednakosti F (1 , 2 ) 1 , For the condition F (1 , 2 ) 1 to hold, parameters in
parametri iz relacije (4) moraju zadovoljavati relaciju: equation (4) must also satisfy the following relation:

t11 min{1 + t 01 ,t 01} . (5)

U ovom sluaju transformacijska funkcija stvara 2-D In this way, the transform function creates a 2-D
frekvencijsko podruje u obliku kutno pomaknutih frequency area in the shape of angularly shifted straight
pravocrtnih linija koje prolaze kroz ishodite 2-D lines which pass through the origin of a 2-D frequency
frekvencijskog podruja (slika 4). 1-D filtarski prototip plane (Figure 4). The low-pass 1-D filter prototype
niskog je propusta i odreuje koje e linije predstavljati defines which lines belong to the passband and which
propusno, a koje nepropusno podruje fan filtra. belong to the stopband of the fan filter.


Slika 4. Klinaste konture za realizaciju fan filtra Slika 5. Frekvencijska karakteristika 2-D fan
Figure 4. Wedge-like contours needed to obtain a filtra
fan filter Figure 5. Frequency response of a 2-D fan filter

Zbog odreivanja dominantnog smjera sadraja slike, fan For the purpose of image directionality assessment, fan
filtri moraju se rotirati u 2-D frekvencijskom podruju i filters must be rotated in a 2-D frequency plane, and must
moraju biti promjenjivog kuta propusnog podruja. have the ability to change the angular width of the
Promjenjivi kut propusnog podruja (kut filtra ) pass-band. The pass-band filter angle determines the
odreuje parametre transformacije [5]. Kut propusnog transform parameters [5] of such filters, which have
podruja kod takvih filtara iznosi od 5 do maksimalno values between 5 and 45.
45.
The filters are realized in the MATLAB 7.01
Filtri su realizirani u programskom paketu MATLAB environment. The following parameters can be freely
7.01. Omogueno je proizvoljno mijenjanje eljenoga changed: pass-band angle, filter order, and
kuta filtra, reda filtra i metode implementacije. Fan filtri implementation method. The Fan filters are designed by
realiziraju se s pomou funkcija fsamp2, fwind1 i fwind2. using one of the following functions: fsamp2, fwind1, and
Funkcija fsamp2 realizira 2-D FIR filtar upotrebom fwind2. The fsamp2 function gives a 2-D FIR filter based
frekvencijskog otipkavanja. Pomou funkcija fwind1 i on the frequency sampling method. The fwind1 and
fwind2 functions
4 M. Bibuli, M. Vranki, V. Sui: Odreivanje usmjerenosti sadraja
____________________________________________________________________________________________________________________________________________________

fwind2 mogu se realizirati 2-D FIR filtri upotrebom yield 2-D FIR filters that are obtained by using the
metoda vremenskih otvora [1]. Funkcija fwind1 koristi windowing methods [1]. The fwind1 function uses the
jednodimenzionalnu vremensku metodu, a funkcija one-dimensional temporal method, while the fwind2
fwind2 koristi dvodimenzionalnu metodu. Kao i kod function uses the two-dimensional method. Similarly as
funkcije fsamp2 dizajn filtra bazira se na eljenom with the fsamp2 function, the filter design is based on the
frekvencijskom odzivu. Da bi se s pomou spomenutih ideal frequency response. In order to design a fan filter by
funkcija moglo realizirati fan filtar, potrebno je odrediti using the above mentioned functions, it is necessary to
matricu eljenoga frekvencijskog odziva. Ideja je determine a matrix that represents a desired frequency
primjenjivanje McClellanova algoritma za realizaciju tzv. response. The 2-D matrix mask is obtained using the
2-D matrine maske. Stvorenoj maski omoguava se McClellan algorithm. The mask can be resized (i.e. the
promjena dimenzija (tj. promjena reda filtra), promjena filter order can be changed), reshaped (i.e. the angle can
oblika (tj. kut filtra) ovisno o eljenom kutu fan filtra te be changed) depending on the desired filter angle, and
rotacija u prostoru od 0 do 180. Primjeri filtara dobiveni rotated in within the range of 0 to 180. Examples of fan
za iste specifikacije, ali s razliitim metodama prikazani filters derived for the same specifications but realized
su na slikama 6, 7 i 8. with different methods are shown in figures 6, 7, and 8.

Slika 6. 2-D fan filtar reda 51 i kuta Slika 7. 2-D fan filtar reda 51 i kuta Slika 8. 2-D fan filtar reda 51 i kuta
25 (metoda fsamp2) 25 (metoda fwind1) 25 (metoda fwind2)
Figure 6. 2-D fan filter of order 51, Figure 7. 2-D fan filter of order 51, Figure 8. 2-D fan filter of order 51,
and angle 25 (fsamp2 method) and angle 25 (fwind1 method) and angle 25 (fwind2 method)

Za filtraciju slike koristit e se skupina filtara istog kuta For image processing, a group of filters is be used that
, ali s razliitim stupnjem rotacije podruja have the same pass-band angle , but different rotation
proputanja. Korak rotacije iznosi 180/. angles . The rotation step is determined as 180/.

3. ODREIVANJE DOMINANTNOG 3. ASSESSING DOMINANT DIRECTION OF


SMJERA SADRAJA DIGITALNE SLIKE THE IMAGE CONTENT

Skupina projektiranih fan filtara primjenjuje se na A group of the designed fan filters is applied to the image
analiziranoj slici. Konvolucija slike x i impulsnog odziva to be analyzed. Convolution of the image x, and the
svakoga pojedinog filtra h, daje filtriranu sliku impulse response of each filter h, results in the filtered
image:

y , [n1 , n2 ] = x[l1 , l2 ]h , [n1 l1 , n2 l2 ] , (6)


k1 k2
koja zadrava dio frekvencijskog sadraja originalne slike which retains part of the frequency content of the original
koji odgovara klinastom podruju frekvencija kutne irine image that corresponds to the wedge-shaped pass-band
2 i rotiranom za kut s obzirom na frekvencijske osi. area with the angular width of 2 and the rotation angle
Na svakoj dobivenoj slici vri se diskretna Fourierova of degrees with respect to the frequency axes. Discrete
transformacija: Fourier transform is applied to each image obtained in
this way::

2 2
N1 1 N 2 1 j( n1k1 + n2 k 2 )
Y , [k1 , k 2 ] = y[n1 , n2 ] e N1 N2
. (7)
n1 = 0 n2 = 0
Eng. Rev. 27-2 (2007), 1-11 5
____________________________________________________________________________________________________________________________________________________

Predloena mjera usmjerenosti odreene slike za The proposed directionality measure for the given image
parametre i dobiva se kao: depends on the parameters and , and it is defined as:

K 1 1K 2 1
M ( , ) = Y [k , k ] .
k1 = 0 k 2 = 0
, 1 2 (8)

Vea vrijednost za M odgovara veoj usmjerenosti Larger values of M indicate greater directionality of an
sadraja slike za odgovarajui kut . Dominantni smjer image for the given angle . The dominant image
slike odgovarat e koraku filtracije koji je rezultirao direction corresponds to the filtering step which results in
najveim M. the largest value of M.

4. REZULTATI 4. RESULTS

4.1. Analiza slika prostornih sinusnih valova 4.1. Analysis of spatial sine wave images

Grafiko korisniko suelje za odreivanje dominantnog The graphical user interface (GUI) for the assessment of
smjera sadraja slike realizirano je pomou programskog dominant image direction has been implemented in
paketa MATLAB 7.01 (slika 9). MATLAB 7.01 (Figure 9).

Slika 9. Grafiko korisniko suelje za odreivanje dominantnog smjera sadraja digitalne slike
Figure 9. GUI for the assessment of dominant image direction

Slika 10 prikazuje sinusne prostorne valove perioda 10 i Figure 10 represents spatial sine waves with the period of
kuta 80. Njihov spektar, odnosno logaritam amplitudnog 10 and the orientation angle of 80. The logarithm of
6 M. Bibuli, M. Vranki, V. Sui: Odreivanje usmjerenosti sadraja
____________________________________________________________________________________________________________________________________________________

spektra, prikazan je na slikama 10 i 11. Metoda the magnitude spectrum is shown in Figures 10 and 11.
implementacije fan filtara je fwind2. Na slikama 12, 13 i The fwind2 method has been used to obtain a group of
14 prikazana su tri sluaja odreivanja dominantnog fan filters. Figures 12, 13, and 14 show examples of
smjera sadraja slike sinusnih valova (kuta 80 i perioda determining a dominant orientation of the same spatial
10) za tri razliite skupine fan filtara. sine-wave image using three different groups of fan
filters.


Slika 10. Prikaz slike i logaritamskog spektra sinusnih valova perioda Slika 11. 3-D prikaz logaritamskog spektra
10 i kuta 80 sinusnih valova
Figure 10. Image of sine waves with the period of 10 and the angle of Figure 11. 3-D view of the logarithm of the
80 (left), and the logarithm of the magnitude spectrum magnitude spectrum

Slika 12. Prikaz mjere M slike Slika 13. Prikaz mjere M slike Slika 14. Prikaz mjere M slike
sinusnih valova realiziran pomou sinusnih valova realiziran pomou sinusnih valova realiziran pomou
fan filtra reda 21 i kuta 45 s fan filtra reda 21 i kuta 20 s fan filtra reda 21 i kuta 5 s korakom
korakom od 10 korakom od 20 od 5
Figure 12. Measure M for the sine- Figure 13. Measure M for the sine- Figure 14. Measure M for the sine-
wave image obtained by using fan wave image obtained by using fan wave image obtained by using fan
filters of order 21 and angle 45 filters of order 21 and angle 20 with filters of order 21 and angle 5 with
with 10 steps 20 steps 5 steps

Najbolji prikaz dominantnog smjera sadraja slike dobiva The best detection of a dominant image direction is
se uporabom fan filtra kuta 20 i koraka filtracije 20 obtained by using the fan filter of an angle of 20 and a
(slika 13). U ostalim prikazima primjeuje se mala filtration step of 20 (Figure 13). The other two examples
pogreka u estimaciji smjera sadraja slike. Slika 12 show small errors in estimating the dominant direction of
prikazuje fan filtar kuta 45 koji filtrira sliku u koracima the image content. Figure 12 shows the results of using a
po 10. U rezultatu filtracije primjeuje se da mjera fan filter of an angle of 45 and filtration steps of 10. The
usmjerenosti poprima konstantnu vrijednost na intervalu results show that the directionality measure has a constant
od 45 oko
Eng. Rev. 27-2 (2007), 1-11 7
____________________________________________________________________________________________________________________________________________________

stvarne vrijednosti dominantnog smjera sadraja slike. value at the interval of 45 around the true value of the
Slika 14 prikazuje rezultate filtracije slike dobivene dominant direction. Figure 14, on the other hand, shows
koritenjem fan filtara kuta 5 i koraka filtracije 5. U the results obtained by using fan filters of the angle 5
ovom je sluaju estimirana vrijednost smjera priblino and the filtration step 5. In this case, the estimation error
tona. Pogreka koja se primjeuje posljedica je premalog is much smaller, and it is a result of the filter order being
reda filtra s obzirom na kut filtra. too small for the given angle value.
Kako je vidljivo iz prethodnih primjera, o irini filtra As shown in previous examples, the dominant direction
znaajno ovisi uspjenost estimacije dominantnog smjera estimation strongly depends on the filter angle . The
slike. Optimalna irina filtra ovisi i o frekvenciji optimal also depends on the frequency of the sine
sinusnih valova. Na slikama 17 i 18 prikazuje se waves. Figures 17 and 18 compare the analysis of two
usporedba analize dvaju sinusnih valova kuta 60 (spektri sine waves oriented at 60 (spectra shown in Figures 15
prikazani na slikama 15 i 16) i razliitih frekvencija. and 16), having different frequencies. In both cases, fan
Filtracija je u obama sluajevima provedena s fan filtrima filters with the same set of parameters are used.
uz iste parametre.


Slika 15. Prikaz logaritamskog spektra sinusnih valova Slika 16. Prikaz logaritamskog spektra sinusnih valova
perioda 5 i kuta 60 perioda 30 i kuta 60
Figure 15. Logarithm of the magnitude spectrum for Figure 16. Logarithm of the magnitude spectrum for
sine waves with period 5 and orientation 60 sine waves with period 30 and orientation 60


Slika17. Prikaz mjere M sadraja sinusnih valova Slika 18. Prikaz mjere M sadraja sinusnih valova
perioda 5 i kuta 60 pomou fan filtra reda 51 i kuta perioda 30 i kuta 60 pomou fan filtra reda 51 i kuta
20 s korakom filtracije od 20 20 s korakom filtracije od 20
Figure17. Measure M for the sine waves with the Figure 18. Measure M for the sine waves with the
period of 5 and the 60 orientation obtained with fan period of 30 and the 60 orientation obtained with fan
filters of order 51, angle 20 and filtration step of 20 filters of order 51, angle and filtration step of 20
8 M. Bibuli, M. Vranki, V. Sui: Odreivanje usmjerenosti sadraja
____________________________________________________________________________________________________________________________________________________

Iz priloenih slika 17 i 18 primjeuje se da se istim kutom From Figures 17 and 18 it can be seen that for the same
fan filtra sinusnim valovima veih frekvencija bolje angular width, a fan filter better detects the orientation of
odreuje dominantan smjer nego onima manjih sine waves of higher frequencies than sine waves of
frekvencija. Razlog je u odstupanju stvarne frekvencijske lower frequencies. This is due to the fact that a designed
karakteristike filtra od idealnoga klinastog oblika. To je fan filter slightly differs from the ideal wedge shape, with
odstupanje vee na niim frekvencijama pa na tim the larger differences for lower frequencies. Therefore, in
frekvencijama dolazi do preklapanja propusnih podruja the area of lower frequencies the pass-bands of rotated
filtara iz iste skupine. Zbog toga su na slici 18 prikazi fan filters overlap. This causes the value of M in Figure
vrijednosti M za ostale smjerove veliki u okolini stvarnog 18 to be rather large for the angles closer to the true sine-
smjera sadraja slike. wave direction.

4.2. Analiza realnih slika 4.2. Analysis of real-world images

Fotografija pod nazivom face sa slike 19 ima znatno A photo called face, shown in Figure 19, has a frequency
raznolikiji frekvencijski sadraj od umjetno generiranih content that is much more diverse than in the case of
slika sinusnih valova. Analiza je provedena pomou synthetic sine-wave images. Image analysis is performed
dvaju razliitih oblika fan filtara. U prvom se sluaju by using two differently shaped fan filters. In the first
koristi fan filtar kuta 10, reda 51 i koraka filtracije 10, a case, we used a fan filter with the angular width of 10,
u drugom se sluaju koristi fan filtar 45, reda 51 i koraka order 51, and the filtration step of 10. In the second case,
filtracije 10. Na slikama 20 i 21 prikazani su rezultati we used a fan filter with the angular width of 45, and the
dobiveni koritenjem ovih filtara. Slika 22 prikazuje order of 51, and the filtration step of 10. Figures 20 and
detalj eira filtrirane slike u sluaju filtriranja slike s fan 21 show the obtained results. Figure 22 shows a part of
filtrom kuta 10, a slika 23 prikazuje isti detalj u sluaju the hat in the filtered image with the 10 fan filter, while
filtriranja s fan filtrom kuta 45. Iz rezultata je vidljivo da Figure 23 shows the same details obtained with the 45
fan filtar kuta 10 i koraka filtracije 10 jasno odreuje fan filter. It is evident that the 10 fan filter with the 10
kut od 90 kao dominantni smjer sadraja slike. filtration step clearly detects the 90 angle as the
dominant direction of the image content.

Slika19. Prikaz slike face (lijevo) s pripadajuim logaritamskim spektrom (desno)


Figure19. The face image (left) and the appropriate logarithm of its magnitude spectrum (right)
Eng. Rev. 27-2 (2007), 1-11 9
____________________________________________________________________________________________________________________________________________________


Slika 20. Prikaz mjere M za sliku face pomou fan Slika 21. Prikaz mjere M za sliku face pomou fan
filtra reda 51 i kuta 10 s korakom filtracije od 10 filtra reda 51 i kuta 45 s korakom filtracije od 10
Figure 20. Measure M for the face image obtained Figure 21. Measure M for the face image obtained
with the fan filters of the order 51, the angle 10 and with the fan filters of the order 51, the angle of 45 and
the filtration step of 10 the filtration step of 10


Slika 22. Filtrirani detalj eira slike 'face' Slika 23. Filtrirani detalj eira slike 'face'
na kutu filtracije 90 s fan filtrom kuta 10 na kutu filtracije 90 s fan filtrom kuta 45
Figure 22. Filtered detail of the hat Figure 23. Filtered detail of the hat
obtained with the 10 fan filter rotated at obtained with the 45 fan filter rotated at
90 90

4.3. Lokalna analiza slike otiska prsta 4.3. Local analysis of the fingerprint image

Jedan je od zanimljivih primjera odreivanje dominantne Let us next determine the dominant direction of a
orijentacije primjer analize slike otiska prsta [6,7]. Kao fingerprint image [6,7]. Fingerprint lines take various
to se vidi na primjeru sa slike 24, linije otiska prsta directions for different parts of the image (see Figure 24).
poprimaju razliite smjerove na razliitim dijelovima In order to analyze local directions, the image is split into
slike. U svrhu analize lokalnih smjerova ta je slika 9 parts, as shown in Figure 25. The procedure for
podijeljena u 9 dijelova, kao to je prikazano na slici 25, i determining a dominant direction is performed for each
na svakom od njih je proveden postupak odreivanja of the 9 subimages. Figure 26 gives the measure M values
dominantnog smjera. Slika 26 prikazuje vrijednosti mjere for the whole image, and Figure 27 displays the local
M cijele slike, dok slika 27 daje prikaz lokalne directionalities of the fingerprint image based on the
usmjerenosti slike otiska prsta temeljene na vrijednostima measure M for each subimage.
mjere M za svaki dio slike.
10 M. Bibuli, M. Vranki, V. Sui: Odreivanje usmjerenosti sadraja
____________________________________________________________________________________________________________________________________________________


Slika 25. Prikaz podijeljene slike otiska u 9 dijelova
Slika 24. Prikaz slike otiska prsta
Figure 25. Division of the fingerprint image into 9
Figure 24. A fingerprint image
subimages


Slika 27. Lokalna usmjerenost slike otiska prsta
Slika 26. Mjera M slike otiska prsta
Figure 27. Local directionalities for the fingerprint
Figure 26. Measure M for the fingerprint image
image

5. ZAKLJUAK 5. CONCLUSION
U ovom je radu predloena metoda odreivanja In this paper, we have proposed a method for assessing
usmjerenosti sadraja digitalne slike temeljena na the directionality of the content of a digital image. The
koritenju skupine fan filtara koji proputaju samo method is based on using fan filters which only pass
odreene prostorne frekvencije. Pokazano je da ta certain spatial frequencies. It was shown that the method,
metoda, uz na odgovarajui nain podeene parametre with the appropriately chosen parameters, gives good
filtara, daje dobre rezultate odreivanja dominatnog results in determining a dominant direction for both
smjera kako u sintetskim tako i realnim slikama. Iz synthetic and real-world images. The obtained results
dobivenih rezultata zakljuujemo da koriteni filtri ije je have also shown that the filters with the wedge-shaped
podruje klinastog oblika bolje odreuju dominantni pass-band can better detect a dominant direction in
smjer slika iji je frekvencijski sadraj koncentriran na images whose frequency content is concentrated in a
viim frekvencijama. Praktine primjene te metode higher frequency range. The applicability of the method
ilustrirane su na realnim slikama ukljuujui i sliku otiska has been illustrated on real life examples including the
prsta. fingerprint image.
Eng. Rev. 27-2 (2007), 1-11 11
____________________________________________________________________________________________________________________________________________________

Uz podjelu slike na vie dijelova ili ak adaptivnu Even more efficient estimation of the image directions
nejednoliku podjelu slike prije primjene predloene can be achieved by splitting an image into a larger
metode omoguila bi se jo kvalitetnija estimacija number of subimages, or performing adaptive and
lokalnih smjerova u slici. nonuniform divisions before the proposed methods are
U ovom je radu koritena jednostavna i numeriki applied.
nezahtjevna L1 norma za izraun mjere usmjerenosti M. In this paper, we have used a rather simple and
U buduim e radovima biti razmotrene razliite norme i numerically inexpensive norm, the L1 norm, to calculate
usporeena njihova uspjenost u odreivanju the directionality measure M. In our future works,
usmjerenosti sadraja digitalnih slika. different norms will be considered, and their
performances in directionality assessment compared.

LITERATURA
REFERENCES

[1] Bibuli M.: Dvodimenzionalni usmjereni filtri za


obradu digitalnih slika, diplomski rad, Tehniki [5] Young-Seog S. and Young H. L.: Formulas for
fakultet Sveuilita u Rijeci, 2007. McClellan Transform Parameters in Designing
[2] McClellan J. H.:The Design of Two Dimensional 2-D Zero-Phase FIR Fan Filters, IEEE Signal
Digital Filters by Transformation, in Proc. 7th Processing Letters, vol. 3, No. 11, November
Ann. Princeton Conf. Inform. Sci. Syst., 1973, 1996, pp. 291 - 293
pp. 247-251 [6] Chikkerur S. S., Cartwright A. N., and
[3] Psarakis E. Z., Mertzios V. G ., and Alexiou G. Govindaraju V.: Fingerprint Image Enhancemet
P.: Design of Two-dimensional Zero Phase FIR using STFT Analysis, Center for Unfied
Fan Filters via the McClellan Transform, IEEE Biometrics and Sensor, University at Buffalo,
Transactions on Circuits and Systems, vol. 37, NY, USA
Januar 1990, pp. 10-16 [7] http://www.cubs.buffalo.edu/fingerrecog.shtml
[4] Pei S. C., and Shyu J. J., Design of 2-D FIR
Digital Filters by McClellan Transformation and
Least Eigencontour Mapping, IEEE
Transactions on Circuits and Systems, vol. 40,
September 1993, pp. 546-555

Izvornoznanstveni lanak
Original scientific paper
Adresa autora/Authors' address
Marino Bibuli
Kunfin 3, Vabriga
52465 Tar
Dr. sc. Miroslav Vranki, dipl. ing.
Doc. dr. sc. Viktor Sui, dipl. ing.
Tehniki fakultet Sveuilita u Rijeci
Vukovarska 58
51000 Rijeka, Hrvatska
12 M. Bibuli, M. Vranki, V. Sui: Odreivanje usmjerenosti sadraja
____________________________________________________________________________________________________________________________________________________

You might also like