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/cvindex.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

40 lines
819 B
C++

/************************************************************
cvindex.h -
$Author: lsxi $
Copyright (C) 2005 Masakazu Yonekura
************************************************************/
#ifndef RUBY_OPENCV_CVINDEX_H
#define RUBY_OPENCV_CVINDEX_H
#include"opencv.h"
namespace mOpenCV{
typedef struct CvIndex{
int value;
}CvIndex;
namespace cCvIndex{
VALUE rb_class();
void define_ruby_class();
VALUE rb_allocate(VALUE klass);
VALUE rb_initialize(int argc, VALUE *argv, VALUE self);
VALUE rb_cv_new(int argc, VALUE *argv, VALUE klass);
VALUE rb_value(VALUE self);
VALUE rb_to_s(VALUE self);
}
inline CvIndex *CVINDEX(VALUE object){
CvIndex *ptr;
Data_Get_Struct(object, CvIndex, ptr);
return ptr;
}
}
#endif // RUBY_OPENCV_CVINDEX_H