Contents
(I) Download
Code and data: (ZIP). | |
Run StartFromHere.m in Matlab. You can monitor intermediate results in the folder: output/. |
(II) Parameter settings
The size of each active basis template is 100 (width) by 100 (height) pixels. Maximum number of Gabor elements in each template is 30. For Gabor wavelets we use a scale of 0.70 and 16 quantized orientations within PI (in radian). Each Gabor element is allowed to move 3 pixels and rotate 1 orientation step(s) at most. We perform soft thresholding at 0.00 on SUM1 scores (Gabor responses) to reduce background clutter.In total we learn 10 active basis templates (i.e. clusters). For EM learning, we randomly start at 1 initializations. Then 10 EM iterations are carried out. In the M step, for each cluster we use a maximum of 100 examples to re-learn the active basis model. In the E step, the activated templates need to have a SUM2 score of at least 30. For local inhibition between templates, the minimum distance between two activated template is 0.40 times the size of template. In later EM iterations, this is increased to 0.40 resulting in sparser representation. Allowed template rotations: [-2, -1, 0, 1, 2]. Allowed image resolutions (relative): [0.80, 0.90, 1.00, 1.10, 1.20]. As a pre-processing step, the input images are resized so that the number of pixels is roughly 22500 pixels.
(III) Classification accuracy
The classification accuracy is 82.35, if 15 object images (positive), 15 background images (negative) are used for training; and 17 object images (positive), 17 background images (negative) are used for testing.
(IV) Templates (visual codes)
Learned templates (some clusters may be empty):
Templates at different iterations:
Iteration 1
Iteration 2
Iteration 3
Iteration 4
Iteration 5
Iteration 6
Iteration 7
Iteration 8
Iteration 9
Iteration10
(V) Training images and their sketch
Show learned templates with different colors:










Show some training images and their sketchs:
(VI) Testing images and their sketch
Show some testing images and their sketchs: