Re: How to declare " moments"?

From: Martin Leese (please_at_see.Web.for.e-mail.INVALID)
Date: 03/25/05


Date: Thu, 24 Mar 2005 21:54:16 -0700
To:  alexanderbinich@gmail.com

alexanderbinich@gmail.com wrote:
> Hi,
>
> I am using cvmoments function now to calculates spatial and central
> moments.
> cvMoments( const CvArr* arr, CvMoments* moments, int binary=0 );
> I do not quite understand "CvMoments* moments" . what is the meaning of
> "Pointer to returned moment state structure." ? How to declare this
> moments? Thank you !

This is basic C stuff. Try something like (untested):

     CvMoments fred;
     CvMoments* pFred;

     pFred = &fred;
     cvMoments( arr, pFred, binary );

-- 
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/