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

Function load_truth_instances

examples/dnn_instance_segmentation_train_ex.cpp:540–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540std::vector<truth_instance> load_truth_instances(const image_info& info)
541{
542 matrix<rgb_pixel> instance_label_image;
543 matrix<rgb_pixel> class_label_image;
544
545 load_image(instance_label_image, info.instance_label_filename);
546 load_image(class_label_image, info.class_label_filename);
547
548 return rgb_label_images_to_truth_instances(instance_label_image, class_label_image);
549}
550
551std::vector<std::vector<truth_instance>> load_all_truth_instances(const std::vector<image_info>& listing)
552{

Callers 1

load_all_truth_instancesFunction · 0.85

Calls 2

load_imageFunction · 0.50

Tested by

no test coverage detected