Commit 3c51fdff authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3849 from Dikay900:fix_tilted_features_crash

parents f7f10a7d fb8478eb
......@@ -555,6 +555,7 @@ HaarEvaluator::HaarEvaluator()
localSize = Size(4, 2);
lbufSize = Size(0, 0);
nchannels = 0;
tofs = 0;
}
HaarEvaluator::~HaarEvaluator()
......@@ -676,6 +677,10 @@ void HaarEvaluator::computeOptFeatures()
copyVectorToUMat(*optfeatures_lbuf, ufbuf);
}
bool HaarEvaluator::setImage(InputArray _image, const std::vector<float>& _scales){
tofs = 0;
return FeatureEvaluator::setImage(_image, _scales);
}
bool HaarEvaluator::setWindow( Point pt, int scaleIdx )
{
......
......@@ -347,6 +347,7 @@ public:
virtual Ptr<FeatureEvaluator> clone() const;
virtual int getFeatureType() const { return FeatureEvaluator::HAAR; }
virtual bool setImage(InputArray _image, const std::vector<float>& _scales);
virtual bool setWindow(Point p, int scaleIdx);
Rect getNormRect() const;
int getSquaresOffset() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment