feat: add disparity params load file.

This commit is contained in:
TinyOh
2019-03-27 14:40:35 +08:00
parent 092b98ca42
commit c5c795feb0
9 changed files with 127 additions and 36 deletions

View File

@@ -119,6 +119,12 @@ void Synthetic::NotifyImageParamsChanged() {
}
}
bool Synthetic::ConfigDisparityFromFile(const std::string& config_file) {
auto processor = getProcessorWithStream(Stream::DISPARITY);
auto proc = static_cast<DisparityProcessor*>(&(*processor));
return proc->ConfigFromFile(config_file);
}
const struct Synthetic::stream_control_t Synthetic::getControlDateWithStream(
const Stream& stream) const {
for (auto &&it : processors_) {