8000 the means of right_buffer? · Issue #84 · fixstars/libSGM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
the means of right_buffer? #84
Open
@PrinceDouble

Description

@PrinceDouble

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!

  1. shared CENSUS_TYPE right_buffer[2 * DP_BLOCK_SIZE][RIGHT_BUFFER_ROWS + 1];

  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0