Open
Description
hi, i have some question about the means of right_buffer and right_x , the codes of this pro pretty good! I am trouble in understand the codes when i read the right_buffer , can you give me more careful introduce about the right_buffer and right_x, thank you!
-
shared CENSUS_TYPE right_buffer[2 * DP_BLOCK_SIZE][RIGHT_BUFFER_ROWS + 1];
-
for (unsigned int i0 = 0; i0 < RIGHT_BUFFER_SIZE; i0 += BLOCK_SIZE) {
const unsigned int i = i0 + threadIdx.x; if (i < RIGHT_BUFFER_SIZE) { const int right_x = static_cast<int>(right_x0 + PATHS_PER_BLOCK - 1 - i - min_disp); const CENSUS_TYPE right_value = load_census_with_check(&right[y * width], right_x, width); 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; } } }
Metadata
Metadata
Assignees
Labels
No labels