| 132 | //------------------------------------- FeatureEvaluator --------------------------------------- |
| 133 | |
| 134 | void 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 | |
| 144 | void FeatureEvaluator::setImage(const Mat &img, uchar clsLabel, int idx) |
| 145 | { |
no test coverage detected