📄 parameters.m
字号:
% LIST OF OBJECTS TO LEARN:
objects = 'screen+frontal-part';
paramfile = 'demoScreen';
%objects = 'car+side-part-occluded';
%paramfile = 'demoCar';
% DATABASES FOLDERS:
% Define the root folder for the images and annotations:
HOMEIMAGES = 'C:\atb\Projects\objectsAndScenes\Boosting\demoICCVcourse\LabelMeDatabase\Images';
HOMEANNOTATIONS = 'C:\atb\Projects\objectsAndScenes\Boosting\demoICCVcourse\LabelMeDatabase\Annotations';
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FEATURES parameters
normalizedObjectSize = [48 128]; % size of object in a normalized frame (= [max height, max width])
% define a hand-picked set of filters to extract features from images:
filters = {[1], ... % original image
[1 2 1;0 0 0; -1 -2 -1]/2, ... % y derivative
[1 0 -1; 2 0 -2; 1 0 -1]/2, ... % x derivative
[-1 -1 -1; -1 8 -1; -1 -1 -1]}; % laplacian
patchSize = [9:2:25]; % size of patch templates
sampleFromImages = 8; % Number of images used to build the dictionary of patches. The images selected will not be used for training or test.
patchesFromExample = 20; % Number of patches to be extracted from every image.
locSigma = exp(-(-7:7).^2/7^2); % spatial filtering of the correlation score.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% parameters for precomputed features
trainingImageSize = [128 200]; % size of the images used for training
negativeSamplesPerImage = 30; % number of background samples extracted from each image
%NsamplesPerClass = 200; % number of training images
testImageSize = [256 256]; % size of the images used for test
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Training parameters
numTrainImages = 200; % number of object training instances, per category
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Compute some common variables:
Nfilters = length(filters);
Npatches = patchesFromExample * Nfilters;
dataFile = fullfile('data', paramfile);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -