Skip to content

Commit def03fe

Browse files
author
Dmytro Guzenko
committed
fixing bug with cumulative descriptors
1 parent e422d68 commit def03fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ZernikeDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ void ZernikeDescriptor<T,TIn>::ComputeInvariants ()
287287
{
288288
//invariants_[n].resize (n/2 + 1);
289289

290-
T sum = (T)0;
291290
int l0 = n % 2, li = 0;
292291

293292
for (int l = n % 2; l<=n; ++li, l+=2)
294293
{
294+
T sum = (T)0;
295295
for (int m=-l; m<=l; ++m)
296296
{
297297
ComplexT moment = zm_.GetMoment (n, l, m);

0 commit comments

Comments
 (0)