1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

added error handling to CvHistgram

This commit is contained in:
ser1zw 2011-08-03 22:44:49 +09:00
parent f8685c49c8
commit 37109f225d
2 changed files with 39 additions and 14 deletions

View file

@ -12,7 +12,7 @@
#include "opencv.h"
#define __NAMESPACE_BEGIN_CVHISTOGRAM namespace cCvHistogram{
#define __NAMESPACE_BEGIN_CVHISTOGRAM namespace cCvHistogram {
#define __NAMESPACE_END_CVHISTOGRAM }
__NAMESPACE_BEGIN_OPENCV
@ -38,8 +38,8 @@ VALUE rb_thresh_bang(VALUE self, VALUE factor);
__NAMESPACE_END_CVHISTOGRAM
inline CvHistogram
*CVHISTOGRAM(VALUE object)
inline CvHistogram*
CVHISTOGRAM(VALUE object)
{
CvHistogram *ptr;
Data_Get_Struct(object, CvHistogram, ptr);