HOME

TheInfoList



OR:

Contextual image classification, a topic of
pattern recognition Pattern recognition is the automated recognition of patterns and regularities in data. It has applications in statistical data analysis, signal processing, image analysis, information retrieval, bioinformatics, data compression, computer graphi ...
in
computer vision Computer vision is an interdisciplinary scientific field that deals with how computers can gain high-level understanding from digital images or videos. From the perspective of engineering, it seeks to understand and automate tasks that the hum ...
, is an approach of
classification Classification is a process related to categorization, the process in which ideas and objects are recognized, differentiated and understood. Classification is the grouping of related facts into classes. It may also refer to: Business, organizat ...
based on contextual information in images. "Contextual" means this approach is focusing on the relationship of the nearby pixels, which is also called neighbourhood. The goal of this approach is to classify the images by using the contextual information.


Introduction

Similar as processing language, a single word may have multiple meanings unless the context is provided, and the patterns within the sentences are the only informative segments we care about. For images, the principle is same. Find out the patterns and associate proper meanings to them. As the image illustrated below, if only a small portion of the image is shown, it is very difficult to tell what the image is about. Even try another portion of the image, it is still difficult to classify the image. However, if we increase the contextual of the image, then it makes more sense to recognize. As the full images shows below, almost everyone can classify it easily. During the procedure of segmentation, the methods which do not use the contextual information are sensitive to noise and variations, thus the result of segmentation will contain a great deal of misclassified regions, and often these regions are small (e.g., one pixel). Compared to other techniques, this approach is robust to noise and substantial variations for it takes the continuity of the segments into account. Several methods of this approach will be described below.


Applications


Functioning as a post-processing filter to a labelled image

This approach is very effective against small regions caused by noise. And these small regions are usually formed by few pixels or one pixel. The most probable label is assigned to these regions. However, there is a drawback of this method. The small regions also can be formed by correct regions rather than noise, and in this case the method is actually making the classification worse. This approach is widely used in
remote sensing Remote sensing is the acquisition of information about an object or phenomenon without making physical contact with the object, in contrast to in situ or on-site observation. The term is applied especially to acquiring information about Earth ...
applications.


Improving the post-processing classification

This is a two-stage classification process: # For each pixel, label the pixel and form a new feature vector for it. # Use the new feature vector and combine the contextual information to assign the final label to the


Merging the pixels in earlier stages

Instead of using single pixels, the neighbour pixels can be merged into homogeneous regions benefiting from contextual information. And provide these regions to classifier.


Acquiring pixel feature from neighbourhood

The original spectral data can be enriched by adding the contextual information carried by the neighbour pixels, or even replaced in some occasions. This kind of pre-processing methods are widely used in textured image recognition. The typical approaches include mean values, variances, texture description, etc.


Combining spectral and spatial information

The classifier uses the grey level and pixel neighbourhood (contextual information) to assign labels to pixels. In such case the information is a combination of spectral and spatial information.


Powered by the Bayes minimum error classifier

Contextual classification of image data is based on the Bayes minimum error classifier (also known as a
naive Bayes classifier In statistics, naive Bayes classifiers are a family of simple "probabilistic classifiers" based on applying Bayes' theorem with strong (naive) independence assumptions between the features (see Bayes classifier). They are among the simplest Baye ...
). Present the pixel: *A pixel is denoted as x_0. *The neighbourhood of each pixel x_0 is a vector and denoted as N(x_0). **The values in the neighbourhood vector is denoted as f(x_i). **Each pixel is presented by the vector :::\xi = \left ( f(x_0), f(x_1), \ldots, f(x_k) \right ) :::x_i \in N(x_0); \quad i = 1, \ldots, k *The labels (classification) of pixels in the neighbourhood N(x_0) are presented as a vector ::\eta = \left ( \theta_0, \theta_1, \ldots, \theta_k \right ) ::\theta_i \in \left \ ::\omega_s here denotes the assigned class. *A vector presents the labels in the neighbourhood N(x_0) without the pixel x_0 ::\hat \eta = \left ( \theta_1, \theta_2, \ldots, \theta_k \right ) The neighbourhood: Size of the neighbourhood. There is no limitation of the size, but it is considered to be relatively small for each pixel x_0. A reasonable size of neighbourhood would be 3 \times 3 of 4-
connectivity Connectivity may refer to: Computing and technology * Connectivity (media), the ability of the social media to accumulate economic capital from the users connections and activities * Internet connectivity, the means by which individual terminals, ...
or 8-connectivity (x_0 is marked as red and placed in the centre). Image:Square_4_connectivity.svg, 4-connectivity neighbourhood,  Image:Square_8_connectivity.svg,
8-connectivity In image processing, pixel connectivity is the way in which pixels in 2-dimensional (or hypervoxels in n-dimensional) images relate to their neighbors. Formulation In order to specify a set of connectivities, the dimension N and the width o ...
neighbourhood
The calculation: Apply the minimum error classification on a pixel x_0, if the probability of a class \omega_r being presenting the pixel x_0 is the highest among all, then assign \omega_r as its class. : \theta_0 = \omega_r \quad\text\quad P(\omega_r\mid f(x_0)) = \max_ P(\omega_s\mid f(x_0)) The contextual classification rule is described as below, it uses the feature vector x_1 rather than x_0. : \theta_0 = \omega_r \quad\text\quad P(\omega_r\mid\xi) = \max_ P(\omega_s\mid\xi) Use the Bayes formula to calculate the posteriori probability P(\omega_s\mid\xi) : P(\omega_s\mid\xi) = \frac The number of vectors is the same as the number of pixels in the image. For the classifier uses a vector corresponding to each pixel x_i, and the vector is generated from the pixel's neighbourhood. The basic steps of contextual image classification: #Calculate the feature vector \xi for each pixel. #Calculate the parameters of probability distribution p ( \xi\mid\omega_s ) and P ( \omega_s ) #Calculate the posterior probabilities P(\omega_r\mid\xi) and all labels \theta_0. Get the image classification result.


Algorithms


Template matching

The
template matching Template matching is a technique in digital image processing for finding small parts of an image which match a template image. It can be used in manufacturing as a part of quality control, a way to navigate a mobile robot, or as a way to detect ...
is a "brute force" implementation of this approach. The concept is first create a set of templates, and then look for small parts in the image match with a template. This method is computationally high and inefficient. It keeps an entire templates list during the whole process and the number of combinations is extremely high. For a m \times n pixel image, there could be a maximum of 2^ combinations, which leads to high computation. This method is a top down method and often called table look-up or dictionary look-up.


Lower-order Markov chain

The
Markov chain A Markov chain or Markov process is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event. Informally, this may be thought of as, "What happe ...
also can be applied in pattern recognition. The pixels in an image can be recognised as a set of random variables, then use the lower order Markov chain to find the relationship among the pixels. The image is treated as a virtual line, and the method uses conditional probability.


Hilbert space-filling curves

The
Hilbert curve The Hilbert curve (also known as the Hilbert space-filling curve) is a continuous fractal space-filling curve first described by the German mathematician David Hilbert in 1891, as a variant of the space-filling Peano curves discovered by Giuseppe ...
runs in a unique pattern through the whole image, it traverses every pixel without visiting any of them twice and keeps a continuous curve. It is fast and efficient.


Markov meshes

The lower-order Markov chain and Hilbert space-filling curves mentioned above are treating the image as a line structure. The Markov meshes however will take the two dimensional information into account.


Dependency tree

The dependency treeC.K. Chow and C.N. Liu,
Approximating Discrete Probability Distributions with Dependence Trees
" IEEE Transactions on Information Theory, vol.14, no. 3, May 1965, pp. 462–467.
is a method using tree dependency to approximate probability distributions.


References

{{Reflist


External links



Computer vision Applications of computer vision Image processing