Skip to content

Commit

Permalink
add debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai-46 committed Mar 28, 2019
1 parent 6a51dc6 commit 673d664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mvs/patch_match_cuda.cu
Original file line number Diff line number Diff line change
@@ -680,6 +680,9 @@ __device__ inline float PropagateDepth(const float depth1,
// depth is now the fourth component
float depth2 = rhs / coeff;

// debug
printf("depth 1: %.6e, depth 2: %.6e\n", depth1, depth2);

// make sure depth2 is not nan
if (depth2 != depth2) {
depth2 = depth1;

0 comments on commit 673d664

Please sign in to comment.