MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / merge_samples

Function merge_samples

tools/openpgl_debug/openpgl_debug.cpp:545–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void merge_samples(DebugParams &debugParams)
546{
547 openpgl::cpp::SampleStorage mergeSamples;
548
549 for (int i = 0; i < debugParams.samples_file_names.size(); i++)
550 {
551 std::cout << "Validate Samples[" << i << "]:" << std::endl;
552 openpgl::cpp::SampleStorage sampleStorage(debugParams.samples_file_names[i]);
553 bool samplesValidate = sampleStorage.Validate();
554 std::cout << " -samples: " << debugParams.samples_file_names[i] << " is " << (samplesValidate ? "valid" : "NOT valid") << std::endl;
555
556 mergeSamples.Merge(sampleStorage);
557 }
558
559 if (debugParams.samples_out_file_name != "")
560 {
561 mergeSamples.Store(debugParams.samples_out_file_name);
562 }
563}
564void validate_field(DebugParams &debugParams)
565{
566 openpgl::cpp::Device device(debugParams.device_type);

Callers 1

mainFunction · 0.85

Calls 4

MergeMethod · 0.80
sizeMethod · 0.45
ValidateMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected