Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2d034a58
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "6693b2c6890a46734bbbfef9a3910db0d6b11c87"
Commit
2d034a58
authored
Jun 26, 2013
by
Davis King
Browse files
Minor change to work with older versions of boost python.
parent
9bd149a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/python/src/vector.cpp
tools/python/src/vector.cpp
+1
-1
No files found.
tools/python/src/vector.cpp
View file @
2d034a58
...
@@ -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_indic
i
es
<>
(
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment