# SetTemplateParameters

## PURPOSE

SetTemplateParameters - Set parameters for each template.

## SYNOPSIS

function SetTemplateParameters

## DESCRIPTION

     SetTemplateParameters - Set parameters for each template.

       Parameters are hard coded in this .m file.
       Please directly edit the code.

       The parameters include:
           1) category folder name
           2) category name to be displayed in latex and html document
           3) template size as height by width
           4) number of elements in active basis template
           5) number of elements in adaboost template
           6) scale of Gabor elements
       And the parameters vary with different categories.

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

- StartFromHere StartFromHere - The entry point of this project.

## SOURCE CODE

    0001 function SetTemplateParameters
    0002 % SetTemplateParameters - Set parameters for each template.
    0003 %
    0004 %   Parameters are hard coded in this .m file.
    0005 %   Please directly edit the code.
    0006 %
    0007 %   The parameters include:
    0008 %       1) category folder name
    0009 %       2) category name to be displayed in latex and html document
    0010 %       3) template size as height by width
    0011 %       4) number of elements in active basis template
    0012 %       5) number of elements in adaboost template
    0013 %       6) scale of Gabor elements
    0014 %   And the parameters vary with different categories.
    0015
    0016 count = 1;
    0017 templateParameters(count).category = 'car';
    0018 templateParameters(count).category_str = 'car';
    0019 templateParameters(count).templateSize = [80 160];
    0020 templateParameters(count).nElement_activebasis = 40;
    0021 templateParameters(count).nElement_adaboost = 60;
    0022 templateParameters(count).GaborScale = 0.7;
    0023
    0024 count = count + 1;
    0025 templateParameters(count).category = 'cow';
    0026 templateParameters(count).category_str = 'cow';
    0027 templateParameters(count).templateSize = [100 140];
    0028 templateParameters(count).nElement_activebasis = 40;
    0029 templateParameters(count).nElement_adaboost = 75;
    0030 templateParameters(count).GaborScale = 0.7;
    0031
    0032 count = count + 1;
    0033 templateParameters(count).category = 'women_model1';
    0034 templateParameters(count).category_str = 'lady models';
    0035 templateParameters(count).templateSize = [150 100];
    0036 templateParameters(count).nElement_activebasis = 50;
    0037 templateParameters(count).nElement_adaboost = 90;
    0038 templateParameters(count).GaborScale = 0.7;
    0039
    0040 count = count + 1;
    0041 templateParameters(count).category = 'pigeon';
    0042 templateParameters(count).category_str = 'pigeon';
    0043 templateParameters(count).templateSize = [120 120];
    0044 templateParameters(count).nElement_activebasis = 35;
    0045 templateParameters(count).nElement_adaboost = 60;
    0046 templateParameters(count).GaborScale = 0.7;
    0047
    0048 count = count + 1;
    0049 templateParameters(count).category = 'zebra';
    0050 templateParameters(count).category_str = 'zebra';
    0051 templateParameters(count).templateSize = [100 120];
    0052 templateParameters(count).nElement_activebasis = 35;
    0053 templateParameters(count).nElement_adaboost = 60;
    0054 templateParameters(count).GaborScale = 1.0;
    0055
    0056 count = count + 1;
    0057 templateParameters(count).category = 'giraff';
    0058 templateParameters(count).category_str = 'giraff';
    0059 templateParameters(count).templateSize = [150 80];
    0060 templateParameters(count).nElement_activebasis = 36;
    0061 templateParameters(count).nElement_adaboost = 56;
    0062 templateParameters(count).GaborScale = 0.9;
    0063
    0064 count = count + 1;
    0065 templateParameters(count).category = 'elephant_side';
    0066 templateParameters(count).category_str = 'elephant (side view)';
    0067 templateParameters(count).templateSize = [100 120];
    0068 templateParameters(count).nElement_activebasis = 30;
    0069 templateParameters(count).nElement_adaboost = 60;
    0070 templateParameters(count).GaborScale = 1.0;
    0071
    0072 count = count + 1;
    0073 templateParameters(count).category = 'elephant_frontal';
    0074 templateParameters(count).category_str = 'elephant (frontal view)';
    0075 templateParameters(count).templateSize = [120 120];
    0076 templateParameters(count).nElement_activebasis = 36;
    0077 templateParameters(count).nElement_adaboost = 60;
    0078 templateParameters(count).GaborScale = 0.9;
    0079
    0080 count = count + 1;
    0081 templateParameters(count).category = 'lion';
    0082 templateParameters(count).category_str = 'lion';
    0083 templateParameters(count).templateSize = [100 150];
    0084 templateParameters(count).nElement_activebasis = 36;
    0085 templateParameters(count).nElement_adaboost = 60;
    0086 templateParameters(count).GaborScale = 1.0;
    0087
    0088 count = count + 1;
    0089 templateParameters(count).category = 'bear';
    0090 templateParameters(count).category_str = 'bear';
    0091 templateParameters(count).templateSize = [100 150];
    0092 templateParameters(count).nElement_activebasis = 40;
    0093 templateParameters(count).nElement_adaboost = 60;
    0094 templateParameters(count).GaborScale = 0.7;
    0095
    0096 count = count + 1;
    0097 templateParameters(count).category = 'deer';
    0098 templateParameters(count).category_str = 'deer';
    0099 templateParameters(count).templateSize = [120 120];
    0100 templateParameters(count).nElement_activebasis = 40;
    0101 templateParameters(count).nElement_adaboost = 60;
    0102 templateParameters(count).GaborScale = 0.7;
    0103
    0104 count = count + 1;
    0105 templateParameters(count).category = 'head_shoulder';
    0106 templateParameters(count).category_str = 'head-shoulder';
    0107 templateParameters(count).templateSize = [85 127];
    0108 templateParameters(count).nElement_activebasis = 32;
    0109 templateParameters(count).nElement_adaboost = 50;
    0110 templateParameters(count).GaborScale = 0.7;
    0111
    0112 count = count + 1;
    0113 templateParameters(count).category = 'catHead';
    0114 templateParameters(count).category_str = 'cat head';
    0115 templateParameters(count).templateSize = [120 120];
    0116 templateParameters(count).nElement_activebasis = 56;
    0117 templateParameters(count).nElement_adaboost = 75;
    0118 templateParameters(count).GaborScale = 0.7;
    0119
    0120 count = count + 1;
    0121 templateParameters(count).category = 'wolfHead';
    0122 templateParameters(count).category_str = 'wolf head';
    0123 templateParameters(count).templateSize = [120 120];
    0124 templateParameters(count).nElement_activebasis = 36;
    0125 templateParameters(count).nElement_adaboost = 60;
    0126 templateParameters(count).GaborScale = 0.7;
    0127
    0128 count = count + 1;
    0129 templateParameters(count).category = 'horse';
    0130 templateParameters(count).category_str = 'horse';
    0131 templateParameters(count).templateSize = [100 125];
    0132 templateParameters(count).nElement_activebasis = 32;
    0133 templateParameters(count).nElement_adaboost = 60;
    0134 templateParameters(count).GaborScale = 0.7;
    0135
    0136 count = count + 1;
    0137 templateParameters(count).category = 'butterfly';
    0138 templateParameters(count).category_str = 'butterfly';
    0139 templateParameters(count).templateSize = [100 150];
    0140 templateParameters(count).nElement_activebasis = 36;
    0141 templateParameters(count).nElement_adaboost = 60;
    0142 templateParameters(count).GaborScale = 0.7;
    0143
    0144 % save
    0145 save('template_params.mat');
    0146
    0147