-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Bugfix in TestArithmeticalDSSOnSurfels #1742
Bugfix in TestArithmeticalDSSOnSurfels #1742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine just some minor edits, and have a look to the template change on the example compilation (exampleMaximalSegmentSliceEstimation.cpp) (and see log https://github.com/DGtal-team/DGtal/actions/runs/10813115621/job/29996362923?pr=1742)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a renaming aLine doxygen
makes parameter list and doxygen documentation match Co-authored-by: Bertrand Kerautret <[email protected]>
Fine for me thanks @troussil could merge when last CI build is done |
👌 |
PR Description
The main issue was an iterator dereferencing in the
init
method of the class ArithmeticalDSSOnSurfels. This was done because of a bad algorithmic choice: in short, the new point to process was computed by looking at the next surfel, instead of looking at the orientation of the current surfel. Several parts of the class has been rewritten to use the latter strategy, which nicely fixes the bug.In summary, in this new version:
*myEnd
in theunit
method,In addition, the template non-type
adjacency
has been removed, since one always wants to use "standard" digital straight segment and "4"-connectivity in the use-case targeted by the class.Checklist
(the three first entries are not relevant since it is a bug fix, but I will take care of the other ones)