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

missing buffer swap

parent 60902a86
No related branches found
No related tags found
No related merge requests found
Pipeline #16242 passed
...@@ -43,6 +43,7 @@ bool NVOpticalFlow::apply(Frame &in, Frame &out, Source *src, cudaStream_t strea ...@@ -43,6 +43,7 @@ bool NVOpticalFlow::apply(Frame &in, Frame &out, Source *src, cudaStream_t strea
cv::cuda::cvtColor(in.get<GpuMat>(channel_in_), left_gray_, cv::COLOR_BGR2GRAY, 0, cvstream); cv::cuda::cvtColor(in.get<GpuMat>(channel_in_), left_gray_, cv::COLOR_BGR2GRAY, 0, cvstream);
nvof_->calc(left_gray_, left_gray_prev_, flow, cvstream); nvof_->calc(left_gray_, left_gray_prev_, flow, cvstream);
std::swap(left_gray_, left_gray_prev_);
return true; return true;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment