我不是 C++、OpenCV 和 CUDA 方面的专家,不明白为什么
cv::gpu::warpPerspective(g_mask, g_frame, warp_matrix, g_frame.size(),
cv::INTER_LINEAR, cv::BORDER_CONSTANT, cv::Scalar(255,255,255));
cv::gpu::GaussianBlur(g_frame, g_frame, cv::Size(blur_radius, blur_radius), 0);
g_frame.download(mask);
比
cv::gpu::warpPerspective(g_mask, g_frame, warp_matrix, g_frame.size(),
cv::INTER_LINEAR, cv::BORDER_CONSTANT, cv::Scalar(255,255,255));
g_frame.download(mask);
cv::GaussianBlur(mask, mask, cv::Size(blur_radius, blur_radius), 0);
告诉我,为什么会这样?还是我写错了代码?