"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "494d2b7a072cdf838b8e4378be25cf4115c64d8f"
Commit 647285e8 authored by Davis King's avatar Davis King
Browse files

Updated imglab so it loads and stores the new ignore option from the gui

to/from the xml files.
parent e11666b4
...@@ -290,6 +290,7 @@ std::vector<dlib::image_display::overlay_rect> get_overlays ( ...@@ -290,6 +290,7 @@ std::vector<dlib::image_display::overlay_rect> get_overlays (
temp[i].rect = data.boxes[i].rect; temp[i].rect = data.boxes[i].rect;
temp[i].label = data.boxes[i].label; temp[i].label = data.boxes[i].label;
temp[i].parts = data.boxes[i].parts; temp[i].parts = data.boxes[i].parts;
temp[i].crossed_out = data.boxes[i].ignore;
assign_pixel(temp[i].color, rgb_pixel(255,0,0)); assign_pixel(temp[i].color, rgb_pixel(255,0,0));
} }
return temp; return temp;
...@@ -388,6 +389,7 @@ on_overlay_rects_changed( ...@@ -388,6 +389,7 @@ on_overlay_rects_changed(
temp.label = rects[i].label; temp.label = rects[i].label;
temp.rect = rects[i].rect; temp.rect = rects[i].rect;
temp.parts = rects[i].parts; temp.parts = rects[i].parts;
temp.ignore = rects[i].crossed_out;
boxes.push_back(temp); boxes.push_back(temp);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment