Repository navigation
Bugfix in TestArithmeticalDSSOnSurfels - #1742
Merged
dcoeurjo merged 5 commits intoSep 13, 2024
Merged
Conversation
kerautret
requested changes
Sep 11, 2024
kerautret
left a comment
Member
There was a problem hiding this comment.
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)
troussil
commented
Sep 11, 2024
kerautret
self-requested a review
September 11, 2024 19:47
kerautret
requested changes
Sep 11, 2024
kerautret
left a comment
Member
There was a problem hiding this comment.
Just a renaming aLine doxygen
makes parameter list and doxygen documentation match Co-authored-by: Bertrand Kerautret <bertrand.kerautret@univ-lyon2.fr>
kerautret
approved these changes
Sep 12, 2024
Member
|
Fine for me thanks @troussil could merge when last CI build is done |
Member
|
👌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
The main issue was an iterator dereferencing in the
initmethod 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:
*myEndin theunitmethod,In addition, the template non-type
adjacencyhas 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)