Skip to content

Bugfix in TestArithmeticalDSSOnSurfels - #1742

Merged
dcoeurjo merged 5 commits into
DGtal-team:masterfrom
troussil:testArithmeticalDSSOnSurfelsFix
Sep 13, 2024
Merged

dcoeurjo merged 5 commits into
DGtal-team:masterfrom
troussil:testArithmeticalDSSOnSurfelsFix

Conversation

@troussil

@troussil troussil commented Sep 11, 2024 •

Copy link
Copy Markdown
Member

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:

  • no *myEnd in the unit method,
  • for each surfel, an associated point is extracted based on its orientation.

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)

  • Unit-test of your feature with Catch.
  • Doxygen documentation of the code completed (classes, methods, types, members...)
  • Documentation module page added or updated.
  • New entry in the ChangeLog.md added.
  • No warning raised in Debug mode.
  • All continuous integration tests pass (Github Actions)

@troussil
troussil requested a review from kerautret September 11, 2024 13:49
@troussil troussil linked an issue Sep 11, 2024 that may be closed by this pull request

@kerautret kerautret left a comment

Copy link
Copy Markdown
Member

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)

@kerautret kerautret left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏻

@kerautret
kerautret self-requested a review September 11, 2024 19:47

@kerautret kerautret left a comment

Copy link
Copy Markdown
Member

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 <bertrand.kerautret@univ-lyon2.fr>
@kerautret

Copy link
Copy Markdown
Member

Fine for me thanks @troussil could merge when last CI build is done

@dcoeurjo

Copy link
Copy Markdown
Member

👌

@dcoeurjo
dcoeurjo merged commit f74ed72 into DGtal-team:master Sep 13, 2024
@dcoeurjo
dcoeurjo deleted the testArithmeticalDSSOnSurfelsFix branch September 13, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test fails testArithmeticalDSSComputerOnSurfels

3 participants