mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
add resetting the offset variable after setting a new image
This commit is contained in:
parent
80069f384a
commit
fb8478eb7b
@ -677,6 +677,10 @@ void HaarEvaluator::computeOptFeatures()
|
|||||||
copyVectorToUMat(*optfeatures_lbuf, ufbuf);
|
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 )
|
bool HaarEvaluator::setWindow( Point pt, int scaleIdx )
|
||||||
{
|
{
|
||||||
|
@ -347,6 +347,7 @@ public:
|
|||||||
virtual Ptr<FeatureEvaluator> clone() const;
|
virtual Ptr<FeatureEvaluator> clone() const;
|
||||||
virtual int getFeatureType() const { return FeatureEvaluator::HAAR; }
|
virtual int getFeatureType() const { return FeatureEvaluator::HAAR; }
|
||||||
|
|
||||||
|
virtual bool setImage(InputArray _image, const std::vector<float>& _scales);
|
||||||
virtual bool setWindow(Point p, int scaleIdx);
|
virtual bool setWindow(Point p, int scaleIdx);
|
||||||
Rect getNormRect() const;
|
Rect getNormRect() const;
|
||||||
int getSquaresOffset() const;
|
int getSquaresOffset() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user