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

Function get_overlays

tools/imglab/src/metadata_editor.cpp:534–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532// ----------------------------------------------------------------------------------------
533
534std::vector<dlib::image_display::overlay_rect> get_overlays (
535 const dlib::image_dataset_metadata::image& data,
536 color_mapper& string_to_color
537)
538{
539 std::vector<dlib::image_display::overlay_rect> temp(data.boxes.size());
540 for (unsigned long i = 0; i < temp.size(); ++i)
541 {
542 temp[i].rect = data.boxes[i].rect;
543 temp[i].label = data.boxes[i].label;
544 temp[i].parts = data.boxes[i].parts;
545 temp[i].crossed_out = data.boxes[i].ignore;
546 temp[i].color = string_to_color(data.boxes[i].label);
547 }
548 return temp;
549}
550
551// ----------------------------------------------------------------------------------------
552

Callers 4

load_imageMethod · 0.85
perform_undoMethod · 0.85
perform_redoMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected