MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / minmax

Function minmax

jni/venus/color_space.cpp:11–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<typename T>
11void minmax(T& min, T& max, const T& _1, const T& _2, const T& _3)
12{
13 if(_1 < _2)
14 {
15 min = _1;
16 max = _2;
17 }
18 else
19 {
20 min = _2;
21 max = _1;
22 }
23
24 if(min > _3)
25 min = _3;
26 else if(max < _3)
27 max = _3;
28}
29
30cv::Vec3f rgb2hsv(const cv::Vec3f& rgb)
31{

Callers 2

rgb2hsvFunction · 0.85
rgb2hslFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected