opencv cuda sgm算法理解

purple_duckweed purple_duckweed 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

https://github.com/opencv/opencv_contrib/blob/4.x/modules/cudastereo/src/cuda/stereosgm.cu

const int x = static_cast<int>(right_x0 + PATHS_PER_BLOCK - 1 - i - min_disp);
                int32_t right_value = 0;
                if (0 <= x && x < static_cast<int>(width))
                {
                    right_value = right(y, x);
                }
                const unsigned int lo = i % DP_BLOCK_SIZE;
                const unsigned int hi = i / DP_BLOCK_SIZE;
                right_buffer[lo][hi] = right_value;
                if (hi > 0)
                {
                    right_buffer[lo + DP_BLOCK_SIZE][hi - 1] = right_value;

不明白right_buffer的含义,以及right_x0 + PATHS_PER_BLOCK - 1 - i - min_disp的意思,求各位大神解答!

...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
purple_duckweed
OpenCV 4,272 成员 959 内容