Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
pylene
Commits
daa19de1
Commit
daa19de1
authored
Mar 25, 2015
by
Edwin Carlinet
Browse files
Fix reverse value iterator for ndimage.
* mln/core/image/ndimage_iter.hpp: Fixed.
parent
648ef5db
Changes
1
Hide whitespace changes
Inline
Side-by-side
mln/core/image/ndimage_iter.hpp
View file @
daa19de1
...
...
@@ -75,13 +75,13 @@ namespace mln
typename
Image
::
point_type
shp
=
pmax
-
pmin
;
std
::
array
<
std
::
ptrdiff_t
,
ndim
>
delta_byte_strides
;
delta_byte_strides
[
ndim
-
1
]
=
ima_
->
strides
[
ndim
-
1
];
delta_byte_strides
[
ndim
-
1
]
=
-
ima_
->
strides
_
[
ndim
-
1
];
for
(
unsigned
i
=
0
;
i
<
ndim
-
1
;
++
i
)
delta_byte_strides
[
i
]
=
-
(
ima_
->
strides_
[
i
]
-
ima_
->
strides
[
i
+
1
]
*
(
shp
[
i
+
1
]
-
1
));
delta_byte_strides
[
i
]
=
-
(
ima_
->
strides_
[
i
]
-
ima_
->
strides
_
[
i
+
1
]
*
(
shp
[
i
+
1
]
-
1
));
return
const_reverse_iterator
(
pixel_t
(
exact
(
ima_
)),
internal
::
make_point_visitor_
for
ward
(
shp
),
internal
::
make_point_visitor_
back
ward
(
shp
),
internal
::
strided_pointer_value_visitor
<
ndim
>
(
ima_
->
last_
,
delta_byte_strides
),
internal
::
no_op_visitor
()
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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