2008-08-19 11:01:28 -04:00
|
|
|
/************************************************************
|
|
|
|
|
|
|
|
cvcontourtree.h -
|
|
|
|
|
|
|
|
$Author: lsxi $
|
|
|
|
|
|
|
|
Copyright (C) 2007 Masakazu Yonekura
|
|
|
|
|
|
|
|
************************************************************/
|
|
|
|
#ifndef RUBY_OPENCV_CVCONTOURTREE_H
|
|
|
|
#define RUBY_OPENCV_CVCONTOURTREE_H
|
|
|
|
#include "opencv.h"
|
|
|
|
|
2011-07-30 11:37:45 -04:00
|
|
|
#define __NAMESPACE_BEGIN_CVCONTOURTREE namespace cCvContourTree {
|
2008-08-19 11:01:28 -04:00
|
|
|
#define __NAMESPACE_END_CVCONTOURTREE }
|
|
|
|
|
|
|
|
__NAMESPACE_BEGIN_OPENCV
|
|
|
|
__NAMESPACE_BEGIN_CVCONTOURTREE
|
|
|
|
|
|
|
|
VALUE rb_class();
|
|
|
|
|
|
|
|
void define_ruby_class();
|
|
|
|
|
|
|
|
VALUE rb_p1(VALUE self);
|
|
|
|
VALUE rb_p2(VALUE self);
|
2011-07-30 11:37:45 -04:00
|
|
|
VALUE rb_contour(VALUE self, VALUE criteria);
|
2008-08-19 11:01:28 -04:00
|
|
|
|
|
|
|
VALUE new_object();
|
|
|
|
|
|
|
|
__NAMESPACE_END_CVCONTOURTREE
|
|
|
|
|
|
|
|
inline CvContourTree*
|
|
|
|
CVCONTOURTREE(VALUE object){
|
|
|
|
CvContourTree *ptr;
|
|
|
|
Data_Get_Struct(object, CvContourTree, ptr);
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
__NAMESPACE_END_OPENCV
|
|
|
|
|
|
|
|
#endif // RUBY_OPENCV_CVCONTOUR_H
|