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

Function ignore_labels

tools/imglab/src/main.cpp:264–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262// ----------------------------------------------------------------------------------------
263
264void ignore_labels (
265 dlib::image_dataset_metadata::dataset& data,
266 const std::string& label
267)
268{
269 for (unsigned long i = 0; i < data.images.size(); ++i)
270 {
271 for (unsigned long j = 0; j < data.images[i].boxes.size(); ++j)
272 {
273 if (data.images[i].boxes[j].label == label)
274 data.images[i].boxes[j].ignore = true;
275 }
276 }
277}
278
279// ----------------------------------------------------------------------------------------
280

Callers 1

mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected