bonanza-ruby-opencv 0.0.13.20170103170729 → 0.0.13.20170125170729
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/opencv/cvmat.cpp +1 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a884f55d0a5e88c4393a0d6d13d7a1bb51d4f0f
|
4
|
+
data.tar.gz: 7f38d043686b63e14740c8e6d7da27999fe1c164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b43d88566af75058ed0f4499b199e77413dbe8ac4900a47589a8348c5c525f234d4887563d64ed9c58406b4e1a5e0457048339fe35cfb64ad2b052efc35fdc
|
7
|
+
data.tar.gz: 203cc626d1141f44ca04c489656cf90e3fbb30540c6ecf87a53cdf941b939279271fde48479526dd6105769c429a045f9b85e8d8264b9fc277a8b90814d2114f
|
data/ext/opencv/cvmat.cpp
CHANGED
@@ -1137,14 +1137,11 @@ rb_set_data(VALUE self, VALUE data)
|
|
1137
1137
|
int depth = CV_MAT_DEPTH(self_ptr->type);
|
1138
1138
|
|
1139
1139
|
if (TYPE(data) == T_STRING) {
|
1140
|
-
if (depth != CV_8U)
|
1141
|
-
rb_raise(rb_eArgError, "Invalid CvMat depth");
|
1142
|
-
|
1143
1140
|
if (!CV_IS_MAT_CONT(self_ptr->type))
|
1144
1141
|
rb_raise(rb_eArgError, "CvMat must be continuous");
|
1145
1142
|
|
1146
1143
|
const int dataLength = RSTRING_LEN(data);
|
1147
|
-
if (dataLength != self_ptr->width * self_ptr->height *
|
1144
|
+
if (dataLength != self_ptr->width * self_ptr->height * CV_ELEM_SIZE(self_ptr->type))
|
1148
1145
|
rb_raise(rb_eArgError, "Invalid data string length");
|
1149
1146
|
|
1150
1147
|
memcpy(self_ptr->data.ptr, RSTRING_PTR(data), dataLength);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bonanza-ruby-opencv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.13.
|
4
|
+
version: 0.0.13.20170125170729
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lsxi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-01-
|
13
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdoc
|