mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
51 lines
1 KiB
C
51 lines
1 KiB
C
/************************************************************
|
|
|
|
cvhumoments.h -
|
|
|
|
$Author: ser1zw $
|
|
|
|
Copyright (C) 2011 ser1zw
|
|
|
|
************************************************************/
|
|
#ifndef RUBY_OPENCV_CVHUMOMENTS_H
|
|
#define RUBY_OPENCV_CVHUMOMENTS_H
|
|
|
|
#include "opencv.h"
|
|
|
|
#define __NAMESPACE_BEGIN_CVHUMOMENTS namespace cCvHuMoments {
|
|
#define __NAMESPACE_END_CVHUMOMENTS }
|
|
|
|
__NAMESPACE_BEGIN_OPENCV
|
|
__NAMESPACE_BEGIN_CVHUMOMENTS
|
|
|
|
VALUE rb_class();
|
|
|
|
void define_ruby_class();
|
|
|
|
VALUE rb_allocate(VALUE klass);
|
|
VALUE rb_initialize(VALUE src_moments, VALUE self);
|
|
|
|
VALUE rb_hu1(VALUE self);
|
|
VALUE rb_hu2(VALUE self);
|
|
VALUE rb_hu3(VALUE self);
|
|
VALUE rb_hu4(VALUE self);
|
|
VALUE rb_hu5(VALUE self);
|
|
VALUE rb_hu6(VALUE self);
|
|
VALUE rb_hu7(VALUE self);
|
|
VALUE rb_to_ary(VALUE self);
|
|
|
|
VALUE new_object(CvMoments *cvmoments);
|
|
|
|
__NAMESPACE_END_CVHUMOMENTS
|
|
|
|
inline CvHuMoments*
|
|
CVHUMOMENTS(VALUE object)
|
|
{
|
|
CvHuMoments *ptr;
|
|
Data_Get_Struct(object, CvHuMoments, ptr);
|
|
return ptr;
|
|
}
|
|
|
|
__NAMESPACE_END_OPENCV
|
|
|
|
#endif // RUBY_OPENCV_CVHUMOMENTS_H
|