mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
moved some functions to cvutils
This commit is contained in:
parent
76f2933061
commit
aaa0de3810
7 changed files with 199 additions and 170 deletions
24
ext/opencv/cvutils.h
Normal file
24
ext/opencv/cvutils.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/************************************************************
|
||||
|
||||
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"
|
||||
|
||||
void raise_typeerror(VALUE object, VALUE expected_class);
|
||||
void raise_compatible_typeerror(VALUE object, VALUE expected_class);
|
||||
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);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue