| Algorithm 1: Weighted Kernel Sparse Representation Classifier |
| 1. Hierarchical Features Extraction based on CENTRIST |
| 2. WKSR: Initialize the weight in each block as 1: While not converge, do (a) Compute weighted kernel sparse representation (b) Compute the reconstruction residual (c) Compute the weight value (d) Checking convergence condition where is a small positive scalar and is the weight value of ith block in the iteration t. |
| 3. Do classification where the sub-matrix of associated with the jth class, being the representation coefficient vector associated with the jth class. |