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

Fixing DSSLength estimator on open curves #941

Merged
merged 3 commits into from
Dec 10, 2014
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
10 changes: 7 additions & 3 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
[#942](https:/DGtal-team/DGtal/pull/942))

- *Shapes Package*
- Adds a vertex Iterator in the Mesh class in addition to the ConstIterator and adds a new method to change the color of a specific face. (Bertrand Kerautret, [#937](https:/DGtal-team/DGtal/pull/937))
- Adds a vertex Iterator in the Mesh class in addition to the
ConstIterator and adds a new method to change the color of a
specific face. (Bertrand Kerautret,
[#937](https:/DGtal-team/DGtal/pull/937))


## Bug Fixes
Expand All @@ -33,12 +36,13 @@
#924, DGtal configuration file when using Eigen3. (Jacques-Olivier
Lachaud, [#926](https:/DGtal-team/DGtal/pull/926))

- *Base*
- *Base Package*
- Iterator category fix for boost > 1.57 (David Coeurjolly,
[#938](https:/DGtal-team/DGtal/pull/938))


- *Geometry Package*
- Fixing DSS based length estimator on open curves. (David
Coeurjolly, [#941](https:/DGtal-team/DGtal/pull/941))
- Fix bug occuring in the computation of the Faithful Polygon (class FP)
in the closed case, ie. with circulators.
(Tristan Roussillon, [#939](https:/DGtal-team/DGtal/pull/939))
Expand Down
3 changes: 2 additions & 1 deletion src/DGtal/geometry/curves/estimation/DSSLengthEstimator.ih
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ inline
typename DGtal::DSSLengthEstimator<T>::Point
DGtal::DSSLengthEstimator<T>::lastPoint(const ConstIterator& ite, IteratorType)
{
return *--ite;
ConstIterator itcopy = ite;
return *--itcopy;
}

template <typename T>
Expand Down