"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "6693b2c6890a46734bbbfef9a3910db0d6b11c87"
Commit 2d034a58 authored by Davis King's avatar Davis King
Browse files

Minor change to work with older versions of boost python.

parent 9bd149a6
...@@ -109,7 +109,7 @@ double cv__getitem__(cv& m, long r) ...@@ -109,7 +109,7 @@ double cv__getitem__(cv& m, long r)
cv cv__getitem2__(cv& m, slice r) cv cv__getitem2__(cv& m, slice r)
{ {
slice::range<cv::iterator> bounds; slice::range<cv::iterator> bounds;
bounds = r.get_indices<>(m.begin(), m.end()); bounds = r.get_indicies<>(m.begin(), m.end());
long num = (bounds.stop-bounds.start+1); long num = (bounds.stop-bounds.start+1);
// round num up to the next multiple of bounds.step. // round num up to the next multiple of bounds.step.
if ((num%bounds.step) != 0) if ((num%bounds.step) != 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment