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
91659410
Commit
91659410
authored
May 13, 2015
by
Edwin Carlinet
Browse files
Add insertion for reindexation in ndimage.
* mln/core/image/ndimage.hpp: Check that the new index is correct.
parent
e9f9b802
Changes
1
Hide whitespace changes
Inline
Side-by-side
mln/core/image/ndimage.hpp
View file @
91659410
...
...
@@ -325,6 +325,7 @@ namespace mln
/// \postcondition `this->index_of_point(domain().pmin) == index_first`
void
reindex
(
size_type
index_first
)
{
mln_precondition
(
index_first
>=
m_index_first
);
std
::
ptrdiff_t
diff
=
index_first
-
m_index_first
;
m_ptr_origin
-=
diff
;
m_index_first
+=
diff
;
...
...
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