Skip to content

Commit 0acab5d

Browse files
committed
Merge pull request #225 from vpisarev/core_fixes_part_1
fixed compile error and warning
2 parents 4d30d09 + 9d38de3 commit 0acab5d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/tracking/src/TrackingFunctionPF.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace cv{
99
public:
1010
TrackingFunctionPF(const Mat& chosenRect);
1111
void update(const Mat& image);
12+
int getDims() const { return 4; }
1213
double calc(const double* x) const;
1314
void correctParams(double* pt)const;
1415
private:

modules/xphoto/src/gcgraph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ TWeight GCGraph<TWeight>::maxFlow()
254254
minWeight = MIN(minWeight, weight);
255255
CV_Assert( minWeight > 0 );
256256
}
257-
weight = abs( TWeight(v->weight) );
257+
weight = std::abs( TWeight(v->weight) );
258258
minWeight = MIN(minWeight, weight);
259259
CV_Assert( minWeight > 0 );
260260
}

0 commit comments

Comments
 (0)