MCPcopy Create free account
hub / github.com/biometrics/openbr / init

Method init

openbr/core/boost.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132//------------------------------------- FeatureEvaluator ---------------------------------------
133
134void FeatureEvaluator::init(Representation *_representation, int _maxSampleCount, int channels)
135{
136 representation = _representation;
137
138 int dx, dy;
139 Size windowSize = representation->windowSize(&dx, &dy);
140 data.create((int)_maxSampleCount, (windowSize.width + dx) * (windowSize.height + dy), CV_32SC(channels));
141 cls.create( (int)_maxSampleCount, 1, CV_32FC1 );
142}
143
144void FeatureEvaluator::setImage(const Mat &img, uchar clsLabel, int idx)
145{

Callers 10

materialize.min.jsFile · 0.45
nFunction · 0.45
eFunction · 0.45
yFunction · 0.45
materialize.jsFile · 0.45
dFunction · 0.45
nFunction · 0.45
abFunction · 0.45
BR_PROPERTYFunction · 0.45
knnFromGalleryFunction · 0.45

Calls 1

windowSizeMethod · 0.80

Tested by

no test coverage detected