Skip to content

BUG: Incorrect size for looping closed parametric dimension.#5242

Merged
thewtex merged 5 commits intoInsightSoftwareConsortium:masterfrom
ntustison:IncSize
Feb 14, 2025
Merged

BUG: Incorrect size for looping closed parametric dimension.#5242
thewtex merged 5 commits intoInsightSoftwareConsortium:masterfrom
ntustison:IncSize

Conversation

@ntustison
Copy link
Member

BUG: Incorrect size for looping closed parametric dimension.

Bug producing an incorrect result for the specific case of a closed parametric dimension, e.g., closed loop or cylinder. This doesn't effect the usual image output.

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
  • Added ITK examples for all new major features (if any)

Refer to the ITK Software Guide for
further development details if necessary.

@github-actions github-actions bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances area:Filtering Issues affecting the Filtering module labels Feb 12, 2025
@dzenanz
Copy link
Member

dzenanz commented Feb 12, 2025

itkBSplineScatteredDataPointSetToImageFilterTest05 fails on multiple platforms, e.g.: https://open.cdash.org/tests/1914768149

@ntustison
Copy link
Member Author

Thanks @dzenanz .

The baseline image is incorrect and needs to be updated. It's been so long that I've forgotten how to update it. Do you happen to have a link to documentation to help remind myself of the procedure? Thanks.

@ntustison
Copy link
Member Author

ntustison commented Feb 12, 2025

Just for completeness, below is a side-by-side comparison of the current baseline image (left) and what it should be (right).

Screenshot 2025-02-13 at 4 54 29 PM

(Edited to add the correct images.)

@dzenanz
Copy link
Member

dzenanz commented Feb 12, 2025

Upload the correct baseline here, then click "download .cid file", and put that new file in the correct place in the repository (Modules\Filtering\ImageGrid\test\Baseline\itkBSplineScatteredDataPointSetToImageFilterTest05_magnitude.png.cid).

@github-actions github-actions bot added the type:Data Changes to testing data label Feb 12, 2025
@@ -1 +1 @@
bafkreifhzzuhtzerxqynchashazjhqlmp6jpipvp6j5azkbfjfla5nuuxm
bafkreigzmzk6nws4pgxdbildcqclzog7gmnsnsuw2tavurzoioma3sktay
Copy link
Member

Choose a reason for hiding this comment

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

Misspelling in commit message caorrect -> correct

@dzenanz
Copy link
Member

dzenanz commented Feb 12, 2025

The test is still failing, see e.g. https://open.cdash.org/tests/1915207818.

@ntustison
Copy link
Member Author

My apologies @dzenanz but I was working with an older snapshot of ITK so the output image wasn't quite correct. I'm trying to upload a new version of the baseline image for testing but after the login screen I'm not seeing the upload options as before. Is the link still valid or am I missing something?

@dzenanz
Copy link
Member

dzenanz commented Feb 13, 2025

The actual instructions are here. I guess that the main upload tool stopped working properly.

Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

@ntustison thanks for contributing this fix 🙏 .

I will also backport it for ITK 5.4.3.

@thewtex thewtex merged commit f67dd9a into InsightSoftwareConsortium:master Feb 14, 2025
16 checks passed
@ntustison ntustison deleted the IncSize branch February 14, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Data Changes to testing data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants