Skip to content

Commit

Permalink
Merge pull request #1107 from copyme/LMSTFixForCoords
Browse files Browse the repository at this point in the history
coordinates were swapped
  • Loading branch information
dcoeurjo committed Jan 11, 2016
2 parents 11edac2 + 3a9d49f commit f408482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@
the folder ```${PREFIX_PATH}/share/DGtal/html/```. This fixes issue
[#1095](https://github.com/DGtal-team/DGtal/issues/1095). (David
Coeurjolly,
[#1103]((https://github.com/DGtal-team/DGtal/issues/1103))
[#1103](https://github.com/DGtal-team/DGtal/issues/1103))
- Fix for swapped coordinates in TangentFromDSS2DFunctor. (Kacper
Pluta,
[#1083](https://github.com/DGtal-team/DGtal/issues/1083))

- *Base Package*
- Fix wrong initialization of reverse iterators in SimpleRandomAccess(Const)RangeFromPoint.
Expand Down
4 changes: 2 additions & 2 deletions src/DGtal/geometry/curves/estimation/FunctorsLambdaMST.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class TangentFromDSS2DFunctor
Value result;
double norm = std::sqrt ( aDSS.a() * aDSS.a() + aDSS.b() * aDSS.b() );
result.second = lambdaFunctor ( (double)indexOfPointInDSS / (double)dssLen );
result.first[0] = result.second * aDSS.a () / norm;
result.first[1] = result.second * aDSS.b () / norm;
result.first[0] = result.second * aDSS.b () / norm;
result.first[1] = result.second * aDSS.a () / norm;
return result;
}
private:
Expand Down

0 comments on commit f408482

Please sign in to comment.