diff --git a/ChangeLog.md b/ChangeLog.md index 2418aa686c..beb51d92b9 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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. diff --git a/src/DGtal/geometry/curves/estimation/FunctorsLambdaMST.h b/src/DGtal/geometry/curves/estimation/FunctorsLambdaMST.h index f74bc5fe6e..f5b1958c36 100644 --- a/src/DGtal/geometry/curves/estimation/FunctorsLambdaMST.h +++ b/src/DGtal/geometry/curves/estimation/FunctorsLambdaMST.h @@ -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: