MCPcopy Create free account
hub / github.com/Profactor/cv-plot / normalize

Function normalize

CvPlot/inc/CvPlot/Internal/util.h:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template<typename T>
24void normalize(cv::Rect_<T> &rect) {
25 if (rect.width < 0) {
26 rect.x += rect.width;
27 rect.width *= -1;
28 }
29 if (rect.height < 0) {
30 rect.y += rect.height;
31 rect.height *= -1;
32 }
33}
34
35template<typename T>
36std::vector<T> toVector(cv::InputArray inputArray) {

Callers 1

fixRatioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected