1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00
ruby-opencv/ext/opencv/cvmoments.h
Patrick Ting 08a9655dc1 Added gemspec to be able to bundle install from git.
Added IplImage#smoothness that returns :smooth, :messy, or :blank.
Rake compile will now compile the C extension code.
2011-04-14 12:26:41 -07:00

67 lines
1.6 KiB
C

/************************************************************
cvmoments.h -
$Author: lsxi $
Copyright (C) 2007 Masakazu Yonekura
************************************************************/
#ifndef RUBY_OPENCV_CVMOMENTS_H
#define RUBY_OPENCV_CVMOMENTS_H
#include "opencv.h"
#define __NAMESPACE_BEGIN_CVMOMENTS namespace cCvMoments{
#define __NAMESPACE_END_CVMOMENTS }
__NAMESPACE_BEGIN_OPENCV
__NAMESPACE_BEGIN_CVMOMENTS
VALUE rb_class();
void define_ruby_class();
VALUE rb_allocate(VALUE klass);
VALUE rb_initialize(int argc, VALUE *argv, VALUE self);
VALUE rb_spatial(VALUE self, VALUE x_order, VALUE y_order);
VALUE rb_central(VALUE self, VALUE x_order, VALUE y_order);
VALUE rb_normalized_central(VALUE self, VALUE x_order, VALUE y_order);
VALUE rb_hu(VALUE self);
VALUE rb_gravity_center(VALUE self);
VALUE rb_angle(VALUE self);
VALUE rb_m00(VALUE self);
VALUE rb_m10(VALUE self);
VALUE rb_m01(VALUE self);
VALUE rb_m20(VALUE self);
VALUE rb_m11(VALUE self);
VALUE rb_m02(VALUE self);
VALUE rb_m30(VALUE self);
VALUE rb_m21(VALUE self);
VALUE rb_m12(VALUE self);
VALUE rb_m03(VALUE self);
VALUE rb_mu20(VALUE self);
VALUE rb_mu11(VALUE self);
VALUE rb_mu02(VALUE self);
VALUE rb_mu30(VALUE self);
VALUE rb_mu21(VALUE self);
VALUE rb_mu12(VALUE self);
VALUE rb_mu03(VALUE self);
VALUE rb_inv_sqrt_m00(VALUE self);
VALUE new_object(CvArr *arr, int is_binary);
__NAMESPACE_END_CVMOMENTS
inline CvMoments*
CVMOMENTS(VALUE object)
{
CvMoments *ptr;
Data_Get_Struct(object, CvMoments, ptr);
return ptr;
}
__NAMESPACE_END_OPENCV
#endif // RUBY_OPENCV_CVMOMENTS_H