Skip to content

Commit

Permalink
Merge pull request #3 from biocryst/invfix
Browse files Browse the repository at this point in the history
fixing bug with cumulative descriptors
  • Loading branch information
codingforfun authored Oct 31, 2020
2 parents 1e8765c + def03fe commit 986e64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ZernikeDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ void ZernikeDescriptor<T,TIn>::ComputeInvariants ()
{
//invariants_[n].resize (n/2 + 1);

T sum = (T)0;
int l0 = n % 2, li = 0;

for (int l = n % 2; l<=n; ++li, l+=2)
{
T sum = (T)0;
for (int m=-l; m<=l; ++m)
{
ComplexT moment = zm_.GetMoment (n, l, m);
Expand Down

0 comments on commit 986e64c

Please sign in to comment.