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

default values

parent 98aaec29
No related branches found
No related tags found
1 merge request!321Reduce latency in device capture and parallel encoding
Pipeline #28670 canceled
...@@ -149,9 +149,9 @@ OpenCVDevice::OpenCVDevice(nlohmann::json &config, bool stereo) ...@@ -149,9 +149,9 @@ OpenCVDevice::OpenCVDevice(nlohmann::json &config, bool stereo)
right_hm_ = cv::cuda::HostMem(dheight_, dwidth_, CV_8UC4); right_hm_ = cv::cuda::HostMem(dheight_, dwidth_, CV_8UC4);
hres_hm_ = cv::cuda::HostMem(height_, width_, 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](){ on("inter_cubic", [this](){
interpolation_ = value("inter_cubic_", false) ? interpolation_ = value("inter_cubic_", true) ?
cv::INTER_CUBIC : cv::INTER_LINEAR; cv::INTER_CUBIC : cv::INTER_LINEAR;
}); });
} }
......
...@@ -117,9 +117,9 @@ PylonDevice::PylonDevice(nlohmann::json &config) ...@@ -117,9 +117,9 @@ PylonDevice::PylonDevice(nlohmann::json &config)
on("buffer_size", buffer_size_, 1); 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](){ on("inter_cubic", [this](){
interpolation_ = value("inter_cubic", false) ? interpolation_ = value("inter_cubic", true) ?
cv::INTER_CUBIC : cv::INTER_LINEAR; 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