Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix VS contour helper #1386

Merged
merged 2 commits into from
Feb 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
[#1344](https://github.com/DGtal-team/DGtal/pull/1344))
- Fix Color::Green definition (David Coeurjolly,
[#1385](https://github.com/DGtal-team/DGtal/pull/1385))
- Fix Visual Studio ContourHelper tests.
(Bertrand Kerautret, [#1386](https://github.com/DGtal-team/DGtal/pull/1386))

- *Documentation*
- Replacing html internal links by ref command in Digital Topology module
Expand Down
2 changes: 1 addition & 1 deletion src/DGtal/geometry/helpers/ContourHelper.ih
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ DGtal::ContourHelper::pixels2pixels8C(const TIterator &itb, const TIterator &ite
*out++ = *it;
unsigned int size = std::distance(itb, ite);
int i=0;
while(i<(int)size-1)
while(i+2<(int)size)
{

short code = FreemanChain<int>::freemanCode4C((*(it+1))[0]-(*it)[0],(*(it+1))[1]-(*it)[1]);
Expand Down