1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00
ruby-opencv/ext/opencv/cvtwopoints.h
ser1zw b3016fc68c added error handling to some methods (2)
Added error handlings to the methods of following classes or modules
 -CvPoint2D32f
 -CvPoint3D32f
 -CvRect
 -CvScalar
 -CvSeq
 -CvSize
 -CvSize2D32f
 -CvSlice
 -CvSURFParams
 -CvSURFPoint
 -CvTermCriteria
 -CvTwoPoints
 -CvUtils
 -CvVideoWriter
 -GUI
 -IplConvKernel
 -IplImage
 -MouseEvent
 -OpenCV
 -Trackbar
 -Window
2011-07-23 19:51:58 +09:00

51 lines
1,001 B
C

/************************************************************
cvtwopoints.h -
$Author: lsxi $
Copyright (C) 2005-2006 Masakazu Yonekura
************************************************************/
#ifndef RUBY_OPENCV_CVTWOPOINTS_H
#define RUBY_OPENCV_CVTWOPOINTS_H
#include "opencv.h"
#define __NAMESPACE_BEGIN_CVTWOPOINTS namespace cCvTwoPoints {
#define __NAMESPACE_END_CVTWOPOINTS }
__NAMESPACE_BEGIN_OPENCV
typedef struct CvTwoPoints {
CvPoint p1;
CvPoint p2;
} CvTwoPoints;
__NAMESPACE_BEGIN_CVTWOPOINTS
VALUE rb_class();
void define_ruby_class();
VALUE rb_allocate(VALUE klass);
VALUE rb_point1(VALUE self);
VALUE rb_point2(VALUE self);
VALUE rb_aref(VALUE self, VALUE index);
VALUE rb_to_ary(VALUE self);
VALUE new_object(CvTwoPoints twopoints);
__NAMESPACE_END_CVTWOPOINTS
inline CvTwoPoints*
CVTWOPOINTS(VALUE object) {
CvTwoPoints *ptr;
Data_Get_Struct(object, CvTwoPoints, ptr);
return ptr;
}
__NAMESPACE_END_OPENCV
#endif // RUBY_OPENCV_CVTWOPOINTS_H