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

Function update

tools/python/src/correlation_tracker.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46double update (
47 correlation_tracker& tracker,
48 py::array img
49)
50{
51 if (is_image<unsigned char>(img))
52 {
53 return tracker.update(numpy_image<unsigned char>(img));
54 }
55 else if (is_image<rgb_pixel>(img))
56 {
57 return tracker.update(numpy_image<rgb_pixel>(img));
58 }
59 else
60 {
61 throw dlib::error("Unsupported image type, must be 8bit gray or RGB image.");
62 }
63}
64
65double update_guess (
66 correlation_tracker& tracker,

Callers 2

updateMethod · 0.85
operator()Method · 0.85

Calls 2

errorClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected