Ask Your Question

Revision history [back]

click to hide/show revision 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);

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

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