Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EAlpha not updated why? #46

Open
rancheng opened this issue Jan 5, 2020 · 0 comments
Open

EAlpha not updated why? #46

rancheng opened this issue Jan 5, 2020 · 0 comments

Comments

@rancheng
Copy link

rancheng commented Jan 5, 2020

I have asked the same question in DSO issue #212

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);

why note update EAlpha and use EAlpha.A to calculate AlphaEnergy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant