Re: How to declare " moments"?
From: Martin Leese (please_at_see.Web.for.e-mail.INVALID)
Date: 03/25/05
- Next message: lucy: "when should I pad image before filtering?"
- Previous message: mittal: "Help with Laplacian Pyramid Implementation"
- In reply to: alexanderbinich_at_gmail.com: "How to declare " moments"?"
- Messages sorted by: [ date ] [ thread ]
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/
- Next message: lucy: "when should I pad image before filtering?"
- Previous message: mittal: "Help with Laplacian Pyramid Implementation"
- In reply to: alexanderbinich_at_gmail.com: "How to declare " moments"?"
- Messages sorted by: [ date ] [ thread ]