Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

the means of right_buffer in stereosgm.cu #3850

Open
PrinceDouble opened this issue Dec 19, 2024 · 0 comments
Open

the means of right_buffer in stereosgm.cu #3850

PrinceDouble opened this issue Dec 19, 2024 · 0 comments

Comments

@PrinceDouble
Copy link

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

const int x = static_cast(right_x0 + PATHS_PER_BLOCK - 1 - i - min_disp);
int32_t right_value = 0;
if (0 <= x && x < static_cast(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;

i dont know the means of right_buffer, and why the The corresponding right pixel index(with disparity) is x = static_cast(right_x0 + PATHS_PER_BLOCK - 1 - i - min_disp)?can anybody help me , thx!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant