Contextual image classification
Contextual image classification, a topic of pattern recognition in computer vision, is an approach of classification based on contextual information in images.[src] "Contextual" means this approach is focusing on the relationship of the nearby pixels, which is also called neighbourhood.[src] The goal of this approach is to classify the images by using the contextual information.[src]
Contextual image classification, a topic of pattern recognition in computer vision, is an approach of classification based on contextual information in images.[src] "Contextual" means this approach is focusing on the relationship of the nearby pixels, which is also called neighbourhood.[src] The goal of this approach is to classify the images by using the contextual information.[src] \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_0, \omega_1, \ldots, \omega_k \right \} \omega_s here denotes the assigned class.[src] 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.[src] There is no limitation of the size, but it is considered to be relatively small for each pixel x_0 .[src] A reasonable size of neighbourhood would be 3 \times 3 of 4-connectivity or 8-connectivity ( x_0 is marked as red and placed in the centre).[src] 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.[src] \theta_0 = \omega_r \quad\text{ if }\quad P(\omega_r\mid f(x_0)) = \max_{s=1,2,\ldots,R} 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 .[src] \theta_0 = \omega_r \quad\text{ if }\quad P(\omega_r\mid\xi) = \max_{s=1,2,\ldots,R} 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{p(\xi\mid\omega_s)P(\omega_s)}{p \left ( \xi \right )} The number of vectors is the same as the number of pixels in the image.[src] For the classifier uses a vector corresponding to each pixel x_i , and the vector is generated from the pixel's neighbourhood.[src] The basic steps of contextual image classification: Calculate the feature vector \xi for each pixel.[src] 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 .[src] Get the image classification result.[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Contextual image classification." encyclopegia.org, 2025, https://encyclopegia.org/wiki/contextual-image-classification. Accessed 28 November 2026.
Chicago
"Contextual image classification." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/contextual-image-classification.
APA
encyclopegia.org. (2025). Contextual image classification. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/contextual-image-classification
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON