2008-08-19 11:01:28 -04:00
|
|
|
/************************************************************
|
|
|
|
|
|
|
|
cvconnectedcomp.h -
|
|
|
|
|
|
|
|
$Author: lsxi $
|
|
|
|
|
|
|
|
Copyright (C) 2005-2007 Masakazu Yonekura
|
|
|
|
|
|
|
|
************************************************************/
|
|
|
|
#ifndef RUBY_OPENCV_CVCONNECTEDCOMP_H
|
|
|
|
#define RUBY_OPENCV_CVCONNECTEDCOMP_H
|
|
|
|
|
|
|
|
#include "opencv.h"
|
|
|
|
|
2011-08-11 14:04:22 -04:00
|
|
|
#define __NAMESPACE_BEGIN_CVCONNECTEDCOMP namespace cCvConnectedComp {
|
2008-08-19 11:01:28 -04:00
|
|
|
#define __NAMESPACE_END_CVCONNECTEDCOMP }
|
|
|
|
|
|
|
|
__NAMESPACE_BEGIN_OPENCV
|
|
|
|
__NAMESPACE_BEGIN_CVCONNECTEDCOMP
|
|
|
|
|
|
|
|
VALUE rb_class();
|
|
|
|
|
|
|
|
void define_ruby_class();
|
|
|
|
|
|
|
|
VALUE rb_allocate(VALUE klass);
|
|
|
|
|
2011-05-14 14:30:11 -04:00
|
|
|
VALUE rb_initialize(int argc, VALUE *argv, VALUE self);
|
2008-08-19 11:01:28 -04:00
|
|
|
VALUE rb_area(VALUE self);
|
|
|
|
VALUE rb_value(VALUE self);
|
|
|
|
VALUE rb_rect(VALUE self);
|
|
|
|
VALUE rb_set_rect(VALUE self, VALUE rect);
|
|
|
|
VALUE rb_contour(VALUE self);
|
|
|
|
|
|
|
|
VALUE new_object();
|
|
|
|
VALUE new_object(CvConnectedComp comp);
|
|
|
|
|
|
|
|
__NAMESPACE_END_CVCONNECTEDCOMP
|
|
|
|
|
2011-02-22 08:33:25 -05:00
|
|
|
inline CvConnectedComp*
|
|
|
|
CVCONNECTEDCOMP(VALUE object)
|
|
|
|
{
|
2008-08-19 11:01:28 -04:00
|
|
|
CvConnectedComp *ptr;
|
|
|
|
Data_Get_Struct(object, CvConnectedComp, ptr);
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
__NAMESPACE_END_OPENCV
|
|
|
|
|
|
|
|
#endif // RUBY_OPENCV_CVCONNECTEDCOMP_H
|