540 likes | 1k Views
Chapter 4 – Data structures for image analysis. 4.1. Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures. 4.1. Levels of image data representation. (i) Pixel-level representation – pixel values
E N D
Chapter 4 – Data structures for image analysis 4.1. Levels of Image Data Representation 4.2. Traditional Image Data Structures 4.3. Hierarchical Data Structures
4.1. Levels of image data representation (i) Pixel-level representation – pixel values describe measures of intensity, color or distance Intensity image Range image 4 -1
Color image Indexed (or palette) color image 4 -2
(ii) Region-level representation – pixels with proximate characteristics are grouped into regions Segmented image
(iii) Relational representation – representing images at a high level of abstraction Adjacency graphs Semantic nets 4 -4
4.2. Traditional image data structures Matrices, chains, graphs, tables 4.2.1. Matrices (i) Ratio image – removes the effect of illumination variation Image model:
Brightness ratio between adjacent pixels: or Grayscale image Ratio image
Local binary pattern (LBP) (ii) Local binary coding (LBC) image For 4-neighbor, the range of LBC is 0 - 16 For 8-neighbor, the range of LBC is 0 - 255 4-neighbor LBC 8-neighbor LBC 4 -7
Integral image ii (iii) Integral image Input image f 4 -12
Adaboost (learning) algorithm (10.6) n training samples: : data space, : label space m positive samples: l negative samples: Feature set: Classifier set associated with F: Sample’s distribution at time t : 4 -17
Initially, For 1. Normalization 2. For each classifier Classification error: Choose the classifier with the smallest Remove from H 4 -18
3. Update where Construct the strong classifier where Extension: Cascaded adaboost algorithm 4 -19
Positive Samples 4 -20
Negative Samples 4 -21
(iv) Co-occurrence matrix (or Spatial gray-level dependence matrix) Texture analysis Texture: closely interwoven elements 4 -22
Example r = (orientation, distance) Image: C(0, 1)= r = (0, 1), C(135, 1)= r = (135, 1), 4 -24
Potential features calculated from co-occurrence matrices Energy: Entropy: Homogeneity: Correlation: Inertia: 4 -25
Feature vector formed from features e.g., Different relations 4 -26
4.2.2. Chains • Chain code: for description of object borders
(ii) Attributed strings 4 -28
String matching Scene string: Model string: Calculate the cost of transforming to The larger the cost the larger the difference between the two strings, and in turn the larger the difference between the two shapes described by the strings. String transformation through editions Types of edition: insert, delete, change 4 -29
Define the cost functions of editions The total cost of string transformation Object recognition by 4 -30
(iii) Run length code: to represent strings of symbols in an image (e.g., for transmission) Binary images: (Row#, (beginning col., end col.) .... (beginning col., end col.)) ……………………………………… (Row#, (beginning col., end col.) .... (beginning col., end col.)) Gray level images: (Row#, (beginning col., end col., brightness) .... (beginning col., end col., brightness)) …………....…………………. (Row#, (beginning col., end col., brightness) .... (beginning col., end col., brightness)) 4 -31
4.2.3. Topological Data Structures Images are described as a set of elements and Their relations. Graph: G(V, E), where V: set of nodes, E: set of arcs Attributed (or weighted) graph: values are assigned to nodes, arcs, or both. Region adjacency graph:
4.2.4. Relational Structures Table 4 -33
4.3.1. Pyramids Matrix pyramid:a sequence of images is derived from by reducing the resolution by 1/2 corresponds to one pixel only 4.3. Hierarchical data structures Multigrid processing
Tree pyramid: Let : the size of an image the set of nodes at level k mapping the nodes in to those in div: whole-number division(?) defines the values of nodes, e.g., average, maximum, minimum Z: a set of brightness levels Leaf nodes have pixel brightness values
e.g., k = 1, From From
k = 2, From e.g.,
4.3.2. Quadtrees 4 -38
4.3.3. Other pyramidal structures Criteria: reduction window, window overlapping, reduction rate, regularity