1 | initial version |
hi james,
the 1st error means, you forgot to create an instance of the Moments
(that's the datatype) returned by moments()
(that's the function creating it)
the 2nd is related to that again, don't pass the address of the function to HuMoments, but the instance created before.
so, it should be:
Moments mom = moments(image, false);
HuMoments(mom, hu);
2 | No.2 Revision |
hi james,
the 1st error means, is, that you forgot to create an instance of the Moments
(that's the datatype) returned by moments()
(that's the function creating it)
the 2nd is related to that again, don't pass the address of the function to HuMoments, but the instance created before.
so, it should be:
Moments mom = moments(image, false);
HuMoments(mom, hu);
3 | No.3 Revision |
hi james, i admit, that it get's confusing, when anything is named 'moments' in one or other way ..
the 1st error is, that you forgot to create an instance of the Moments
(that's the datatype) returned by moments()
(that's the function creating it)
the 2nd is related to that again, don't pass the address of the function to HuMoments, but the instance created before.
so, it should be:
Moments mom = moments(image, false);
HuMoments(mom, hu);