Research Article

Context-Aware and Locality-Constrained Coding for Image Categorization

Algorithm 1

Context matching degree calculation.
Input: (feature to be coded), (context length),
(dictionary), (relationship matrixes)
Output:
{Labeling the input feature  
(1) ,
{Labeling the feature within the context domain}
(2)Ω( ) find the context domain of  with size
(3) find all the features in Ω( )
(4)
(5) for     to     do
(6)  
(7) end for
{calculating the context matching degree}
(8)  ,
(9)    for     to     do
(10)  
(11)   end for