MCPcopy Create free account
hub / github.com/davisking/dlib / edge_diff_uint

Function edge_diff_uint

dlib/image_transforms/segment_image.h:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 {
21 template <typename T>
22 inline T edge_diff_uint(
23 const T& a,
24 const T& b
25 )
26 {
27 if (a > b)
28 return a - b;
29 else
30 return b - a;
31 }
32
33 // ----------------------------------------
34

Callers 3

operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected