Application of Wavelets To Document Image Processing, Graph Processing and Video Processing
Application of Wavelets To Document Image Processing, Graph Processing and Video Processing
Dr. S A Angadi
Professor, Dept. of Computer Science and Engineering,
PG Centre,
Visvesaraya Technological University, Belgaum
Contents
• Applications to Document Image Processing
Contd…
• Graphs and their Applications
• Graphs and Wavelets
• Video Processing
• Video Processing and Wavelets
• Summary
3
S A Angadi M M Kodabagi
Department of CSE, Basaveshwar Engg College
• Further, the converted image is divided into 50x50 blocks. For each block,
DWT (Discrete Wavelet Transform) is applied to obtain wavelet energy
features at each level j.
• There are several benefits of using larger sized image blocks for extracting
energy features
• One such benefit is, the larger size image blocks cover more details and
hence extracted features give sufficient information for correct classification
of blocks into text and non-text categories
Feature Extraction
• Totally 3 features are extracted from every block at each level j and
are stored into a feature vector Yi (Subscript “i” corresponds to ith
block).
Where;
rmin, rmax, cmin, cmax- corresponds to coordinates of ith block in
terms of minimum and maximum row and column numbers.
Classification
•The classification phase of the proposed model classifies every block into
two classes’ w1 and w2.
Where
• Ci corresponds to coordinates of ih text block.
• rmin, rmax, cmin, cmax corresponds to the
coordinates of ith block in terms of minimum and
maximum row and column numbers
• R = [ri , i = 1,W]
Sample output
18
Preprocessing
Preprocessing
LVQ-NN
(recognizer)
Feature Feature
Extraction Extraction
Signature
Recognition
LVQ- Neural Network Based Signature Recognition
Image Acquisition:
Preprocessing:
Feature Extraction
-Features: 1. maximum horizontal projection position
2. maximum vertical projection position
-Technique: Descrete Wavelet Transform
Ac Hc Vc Dc
ii) DWT with the filter called ‘db4’ is applied to each of the 8 blocks
LVQ- NN Based Signature Recognition System Using Wavelet Features
Feature extraction contd…
iii) original image is diagonally divided to get 4 blocks
Experimentation
-Experiment 1: 8 blocks and DWT
Accuracy was too low (45% to 80%)
Persons Accuracy(%)
15 84
20 70
25 66
30 55
35 51
40 41
45 47
50 45
LVQ- NN Based Signature Recognition System Using Wavelet Features
Persons Accuracy(%)
15 88
20 78
25 75
30 70
35 67
40 65
45 62
50 60
LVQ- NN Based Signature Recognition System Using Wavelet Features
Persons Accuracy(%)
15 94
20 91
25 88
30 85
35 80
40 77
45 76
50 74
Euclidean Distance Based Offline Signature Recognition System Using Global
and Local Wavelet Features
Preprocessing Preprocessing
Feature Feature
Extraction Extraction
Signature
Recognised
Training Testing
Phase Phase
Euclidean Distance Based Offline Signature Recognition System Using Global
and Local Wavelet Features
Image Acquisition:
Preprocessing:
i) Gray Scale Conversion
ii) Binarization
iii) Thinning
iii) Fitting Boundary Box:
Euclidean Distance Based Offline Signature Recognition System Using Global
and Local Wavelet Features
Feature Extraction
-Global Features:
Height
Width
Area
Centroid-x, Centroid-y
maximum horizontal projection position
maximum vertical projection position
-Local Features:
Energy features
E=∑ I(i,j) / MXN
-Technique: Discrete Wavelet Transform
Euclidean Distance Based Offline Signature Recognition System Using Global and
Local Wavelet Features
First: The whole image is divided into 16 blocks
Second: First level DWT with the filter called ‘db4’ is applied to each of
the 16 blocks. DWT decomposes each block into four sub-images
Third: For each of the detailed coefficient matrices, energy features are
extracted using the equation
E=∑ I(i,j) / MXN
List of Features Extracted
Sl. Feature Sl. Feature Sl. Feature Sl. Feature
N0 N0 N0 N0
1. Height 16. VEF4 31. VEF9 46. VEF14
2 Width 17. DEF4 32. DEF9 47. DEF14
3. Area 18. HEF5 33. HEF10 48. HEF15
4. Centroid-X 19. VEF5 34. VEF10 49. VEF15
5. Centroid-Y 20. DEF5 35. DEF10 50. DEF15
6. HEF1 21. HEF6 36. HEF11 51. HEF16
7. VEF1 22. VEF6 37. VEF11 52. VEF16
8. DEF1 23. DEF6 38. DEF11 53. DEF16
9. HEF2 24. HEF7 39. HEF12 54. HPH
10. VEF2 25. VEF7 40. VEF12 55. VPH
11. DEF2 26. DEF7 41. DEF12 56. HPV
12. HEF3 27. HEF8 42. HEF13 57. VPV
13. VEF3 28. VEF8 43. VEF13 58. HPD
14. DEF3 29. DEF8 44. DEF13 59. VPD
15. HEF4 30. HEF9 45. HEF14
Euclidean Distance Based Offline Signature Recognition System Using Global and
Local Wavelet Features
Classification/Testing
n
d(p,q) d(q, p) (q1 p1) (q2 p2) ...(qn pn)
2 2 2
i i
(q
i1
p )2
In testing, all the features of test image are extracted. Using the
Euclidean distance we generate matching scores by matching a
test signature features with all the signatures of database. A
signature is matched if this distance lies in a range of subjective
threshold.
Euclidean Distance Based Offline Signature Recognition System Using Global and
Local Wavelet Features
Experiments
Experiment 1 Experiment 2
Graph Representations
• V - number of vertices (nodes), E- number of
edges
• Edge array - size: E
• Adjacency matrix - size: V * V
• Adjacency lists - size: V + E
• Real representations are often more complicated
Graph Representation Properties
• V - number of vertices E - number of edges
matrix list edge array
space V2 V+E E
find edge 1 V E
insert edge 1 1 1
path v to w? V2 V+E E lgV
Graph Processing Problems
• Traversal, shortest paths, longest paths
• Simple and strong connectivity
• Sub graphs, cliques
• Planarity (no edge crossing)
• Isomorphism
• Graph drawing
• Compute some static value of the graph
degree distribution, clustering coefficient
• Identify some subset of edges or vertices
-spanning tree, connected components
• Graph algorithms are difficult to test for correctness
• All of these problems are characterized by high/ large data content
• Hence there is scope for abstracting this information and wavelets are
handy tools for such applications
Graph Processing and Wavelets
• Many interesting scientific and real world problems
involve manipulating/ processing structured data
• Examples include data defined on network-like
structures, data defined on manifolds or irregularly
shaped domains, and data consisting of “point clouds”,
such as collections of feature vectors with associated
labels
• Graphs can be used to represent data of many real
world entities/ processes
• The properties of the graphs can be brought out in
matrices such as adjacency matrix etc.
Graph Processing and Wavelets
• The adjacency or other matrix representations of the weighted graph can
be subjected to wavelet transforms, which helps in abstracting the
information into smaller dimensioned data[David K Hammand et al,
“Wavelets on graphs via spectral graph theory”, Applied and
Computational Harmonic Analysis, vol. 30, no. 2, pp. 129-150, 2011]
• The graph wavelet transform could be useful for analyzing data defined on
these vertices, where the data is expected to be influenced by the
underlying topology of the network
Graph Processing and Wavelets
• In this construction, the wavelet operator at unit scale is given as an operator valued
function Tg = g(L) for a generating kernel g
• Scaling is then defined in the spectral domain, i.e. the operator Tt g at scale t is given
by g(tL)
• Applying this operator to an input signal f gives the wavelet coefficients of f at scale t
• These coefficients are equivalent to inner products of the signal f with the individual
graph wavelets