Open ryan-skydio opened 2 years ago
In FindMaxCorr10() in matching.cu, if numPts2 < M7H, then this loop will not run:
FindMaxCorr10()
matching.cu
numPts2 < M7H
for (int bp2=0;bp2<numPts2 - M7H + 1;bp2+=M7H) {
which means that indices will retain their initial value of -1, and then at the end of the function this access occurs:
indices
-1
sift1[bp1 + tx].match_xpos = sift2[index].xpos;
with index==-1.
index==-1
In
FindMaxCorr10()
inmatching.cu
, ifnumPts2 < M7H
, then this loop will not run:which means that
indices
will retain their initial value of-1
, and then at the end of the function this access occurs:with
index==-1
.