| 52 | // ---------------------------------------------------------------------------------------- |
| 53 | |
| 54 | bool 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 |
| 65 | namespace std { |
no test coverage detected