|
// calculate alpha energy, and decide if we cap it. |
|
Accumulator11 EAlpha; |
|
EAlpha.initialize(); |
|
for(int i=0;i<npts;i++) |
|
{ |
|
Pnt* point = ptsl+i; |
|
if(!point->isGood_new) |
|
{ |
|
E.updateSingle((float)(point->energy[1])); |
|
} |
|
else |
|
{ |
|
point->energy_new[1] = (point->idepth_new-1)*(point->idepth_new-1); |
|
E.updateSingle((float)(point->energy_new[1])); |
|
} |
|
} |
|
EAlpha.finish(); |
|
float alphaEnergy = alphaW*(EAlpha.A + refToNew.translation().squaredNorm() * npts); |
I guess there's a typo here because EAlpha is not doing anything here.
dso/src/FullSystem/CoarseInitializer.cpp
Lines 502 to 519 in 7b0c99f
I guess there's a typo here because
EAlphais not doing anything here.