mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
40 lines
819 B
C++
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
|