Skip to content
Snippets Groups Projects
Commit 8025cc08 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

default values

parent 98aaec29
Branches
Tags
1 merge request!321Reduce latency in device capture and parallel encoding
Pipeline #28670 canceled
This commit is part of merge request !321. Comments created here will be created in the context of that merge request.
......@@ -149,9 +149,9 @@ OpenCVDevice::OpenCVDevice(nlohmann::json &config, bool stereo)
right_hm_ = cv::cuda::HostMem(dheight_, dwidth_, CV_8UC4);
hres_hm_ = cv::cuda::HostMem(height_, width_, CV_8UC4);
interpolation_ = value("inter_cubic", false) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
interpolation_ = value("inter_cubic", true) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
on("inter_cubic", [this](){
interpolation_ = value("inter_cubic_", false) ?
interpolation_ = value("inter_cubic_", true) ?
cv::INTER_CUBIC : cv::INTER_LINEAR;
});
}
......
......@@ -117,9 +117,9 @@ PylonDevice::PylonDevice(nlohmann::json &config)
on("buffer_size", buffer_size_, 1);
interpolation_ = value("inter_cubic", false) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
interpolation_ = value("inter_cubic", true) ? cv::INTER_CUBIC : cv::INTER_LINEAR;
on("inter_cubic", [this](){
interpolation_ = value("inter_cubic", false) ?
interpolation_ = value("inter_cubic", true) ?
cv::INTER_CUBIC : cv::INTER_LINEAR;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment