2011-07-03 02:12:36 -04:00
|
|
|
/************************************************************
|
|
|
|
|
|
|
|
cvutils.h -
|
|
|
|
|
|
|
|
$Author: ser1zw $
|
|
|
|
|
|
|
|
Copyright (C) 2011 ser1zw
|
|
|
|
|
|
|
|
************************************************************/
|
|
|
|
|
|
|
|
#include <ruby.h>
|
|
|
|
#include "opencv2/core/core_c.h"
|
|
|
|
#include "opencv2/core/core.hpp"
|
|
|
|
#include "opencv2/imgproc/imgproc_c.h"
|
|
|
|
#include "opencv2/imgproc/imgproc.hpp"
|
|
|
|
|
2011-07-11 13:30:10 -04:00
|
|
|
#define raise_cverror(e) cCvError::raise(e)
|
|
|
|
|
2011-07-03 02:12:36 -04:00
|
|
|
void raise_typeerror(VALUE object, VALUE expected_class);
|
2011-11-20 06:18:24 -05:00
|
|
|
void raise_typeerror(VALUE object, const char* expected_class_name);
|
2011-07-03 02:12:36 -04:00
|
|
|
void raise_compatible_typeerror(VALUE object, VALUE expected_class);
|
2011-11-20 06:18:24 -05:00
|
|
|
void raise_compatible_typeerror(VALUE object, const char* expected_class_name);
|
2011-07-03 02:12:36 -04:00
|
|
|
void* rb_cvAlloc(size_t size);
|
|
|
|
CvMat* rb_cvCreateMat(int height, int width, int type);
|
|
|
|
IplImage* rb_cvCreateImage(CvSize size, int depth, int channels);
|
|
|
|
IplConvKernel* rb_cvCreateStructuringElementEx(int cols, int rows, int anchorX, int anchorY, int shape, int *values);
|
|
|
|
CvMemStorage* rb_cvCreateMemStorage(int block_size);
|
2011-10-30 14:28:06 -04:00
|
|
|
VALUE rb_get_option_table(VALUE klass, const char* table_name, VALUE option);
|
2011-07-03 02:12:36 -04:00
|
|
|
|