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

Function is_instance_pixel

examples/dnn_instance_segmentation_train_ex.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52// ----------------------------------------------------------------------------------------
53
54bool is_instance_pixel(const dlib::rgb_pixel& rgb_label)
55{
56 if (rgb_label == dlib::rgb_pixel(0, 0, 0))
57 return false; // Background
58 if (rgb_label == dlib::rgb_pixel(224, 224, 192))
59 return false; // The cream-colored `void' label is used in border regions and to mask difficult objects
60
61 return true;
62}
63
64// Provide hash function for dlib::rgb_pixel
65namespace std {

Callers 1

Calls 1

rgb_pixelClass · 0.85

Tested by

no test coverage detected