Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm afraid Hu Moments don't compare quite so easily. If you look at the implementation of matchShapes in the imgproc dll, you can see the math used to compare them.

In any case, you'll want to just hold them as a list of double[7]. Overall, it's a small amount of memory, even compared to one frame of video. Pick your favorite linear data structure, vector being the usual one.