Skip to content

Commit

Permalink
[matching/KVLD] Used define threshold variable rather than a hardcode…
Browse files Browse the repository at this point in the history
…d value(openMVG#1570)

Defined but Unused threshold parameter maxContrast, adding usage of threshold parameter to code.
  • Loading branch information
Mirmix authored and pmoulon committed Nov 9, 2019
1 parent c7d4b66 commit a07a55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openMVG/matching/kvld/kvld.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class VLD
diff[ 0 ] = 0;
diff[ 1 ] = 0;

if (contrast > 300 || vld2.contrast > 300 || contrast <= 0 || vld2.contrast <=0 )
if (contrast > maxContrast || vld2.contrast > maxContrast || contrast <= 0 || vld2.contrast <=0 )
return 128;

for (int i = 0; i < dimension; i++ )
Expand Down

0 comments on commit a07a55d

Please sign in to comment.