Skip to content

ENH: Add ConnectedComponentImageFilter test baseline CID blobs (3 files, 15.4 KiB)#38

Merged
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:gh-pagesfrom
hjmjohnson:add-connectedcomponentimagefilter-cid-blobs
Apr 27, 2026
Merged

ENH: Add ConnectedComponentImageFilter test baseline CID blobs (3 files, 15.4 KiB)#38
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:gh-pagesfrom
hjmjohnson:add-connectedcomponentimagefilter-cid-blobs

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

Adds three new baseline blobs needed by ITK#5836 (Remove std::uniform_int_distribution from ConnectedComponentImageFilter tests). Workaround for the broken content-link-upload.itk.org service.

Note: I do not have a local Kubo node, so these blobs are committed but not yet pinned to IPFS. A maintainer with ipfs access should pin/replicate before the companion ITK PR updates the .cid content links.

Blobs added
CID Size Used by test
bafkreibyjpytxv46k6mkxo3sadppjvs6b5vjqwqcz6u4vkzpp2btmge4fm 6655 B itkConnectedComponentImageFilterTest, itkConnectedComponentImageFilterTestRGB
bafkreif6vtfmpapapqk5q5xlitj7g72pdihcrrncdf5cwgtnexu36cj6rm 5182 B itkConnectedComponentImageFilterTest2
bafkreibxbxqmcg73nig3ncv7gt2rqdcj7nfw72r3be4r6l5llmqw4wpwru 3015 B itkConnectedComponentImageFilterTest3

Test.png and TestRGB.png are byte-identical (same RNG seed, same colormap), so only three unique blobs are needed for the four updated tests.

How the blobs were generated
  1. Worktree of ITK#5836 rebased onto upstream/main.
  2. Configured Release/Ninja with Module_ITKConnectedComponents=ON, fetched ExternalData (ninja ITKData).
  3. Built ITKConnectedComponentsTestDriver.
  4. Ran the four tests via ctest -R '^itkConnectedComponentImageFilterTest(|RGB|2|3)$'.
  5. Captured the output PNGs from Testing/Temporary/ITKConnectedComponents/.
  6. Computed CIDv1-raw with the standard sha256+raw multihash encoding; verified by re-hashing the staged blob.

Three new CIDv1-raw blobs (15.4 KiB total) used as updated baselines
for the four `itkConnectedComponentImageFilterTest*` tests modified by
InsightSoftwareConsortium/ITK#5836, which replaces
`std::uniform_int_distribution` in the colormap RNG with an explicit
modulo expression so test output is reproducible across libstdc++ /
libc++ / MSVC.

Blobs:
  bafkreibyjpytxv46k6mkxo3sadppjvs6b5vjqwqcz6u4vkzpp2btmge4fm  6655 B
    ConnectedComponentImageFilterTest.png  (also reused by ...TestRGB)
  bafkreif6vtfmpapapqk5q5xlitj7g72pdihcrrncdf5cwgtnexu36cj6rm  5182 B
    ConnectedComponentImageFilterTest2.png
  bafkreibxbxqmcg73nig3ncv7gt2rqdcj7nfw72r3be4r6l5llmqw4wpwru  3015 B
    ConnectedComponentImageFilterTest3.png

Generated locally on macOS 15 / Apple Clang Release build of ITK with
PR #5836 applied. Workaround for the broken content-link-upload.itk.org
service tracked in
InsightSoftwareConsortium/cmake-w3-externaldata-upload#3.

IPFS pinning could not be performed in this session (no local Kubo
node); pin/replicate from a maintainer's node before merging the
companion ITK PR that updates the .cid content links.
@hjmjohnson hjmjohnson marked this pull request as ready for review April 27, 2026 00:37
@hjmjohnson hjmjohnson merged commit d89fd19 into InsightSoftwareConsortium:gh-pages Apr 27, 2026
1 check passed
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request Apr 27, 2026
…istic RNG

The previous commit replaced std::uniform_int_distribution with a
direct modulo expression so that std::mt19937 output is reduced
identically across libstdc++ / libc++ / MSVC. Update the four test
baselines to the new deterministic output and drop the per-platform
.1 alternates that existed only to paper over the prior cross-stdlib
divergence.

Three new CIDs land via InsightSoftwareConsortium/ITKTestingData#38:

  Test.png  (also reused by ...TestRGB)
    bafkreibyjpytxv46k6mkxo3sadppjvs6b5vjqwqcz6u4vkzpp2btmge4fm
  Test2.png
    bafkreif6vtfmpapapqk5q5xlitj7g72pdihcrrncdf5cwgtnexu36cj6rm
  Test3.png
    bafkreibxbxqmcg73nig3ncv7gt2rqdcj7nfw72r3be4r6l5llmqw4wpwru

Verified locally on macOS 15 / Apple Clang Release: all four
itkConnectedComponentImageFilterTest{,RGB,2,3} tests pass against
the new primary baselines with no fall-through to alternates.
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request Apr 27, 2026
…istic RNG

The previous commit replaced std::uniform_int_distribution with a
direct modulo expression so that std::mt19937 output is reduced
identically across libstdc++ / libc++ / MSVC. Update the four test
baselines to the new deterministic output and drop the per-platform
.1 alternates that existed only to paper over the prior cross-stdlib
divergence.

Three new CIDs land via InsightSoftwareConsortium/ITKTestingData#38:

  Test.png  (also reused by ...TestRGB)
    bafkreibyjpytxv46k6mkxo3sadppjvs6b5vjqwqcz6u4vkzpp2btmge4fm
  Test2.png
    bafkreif6vtfmpapapqk5q5xlitj7g72pdihcrrncdf5cwgtnexu36cj6rm
  Test3.png
    bafkreibxbxqmcg73nig3ncv7gt2rqdcj7nfw72r3be4r6l5llmqw4wpwru

Verified locally on macOS 15 / Apple Clang Release: all four
itkConnectedComponentImageFilterTest{,RGB,2,3} tests pass against
the new primary baselines with no fall-through to alternates.
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request Apr 27, 2026
…istic RNG

The previous commit replaced std::uniform_int_distribution with a
direct modulo expression so that std::mt19937 output is reduced
identically across libstdc++ / libc++ / MSVC. Update the four test
baselines to the new deterministic output and drop the per-platform
.1 alternates that existed only to paper over the prior cross-stdlib
divergence.

Three new CIDs land via InsightSoftwareConsortium/ITKTestingData#38:

  Test.png  (also reused by ...TestRGB)
    bafkreibyjpytxv46k6mkxo3sadppjvs6b5vjqwqcz6u4vkzpp2btmge4fm
  Test2.png
    bafkreif6vtfmpapapqk5q5xlitj7g72pdihcrrncdf5cwgtnexu36cj6rm
  Test3.png
    bafkreibxbxqmcg73nig3ncv7gt2rqdcj7nfw72r3be4r6l5llmqw4wpwru

Verified locally on macOS 15 / Apple Clang Release: all four
itkConnectedComponentImageFilterTest{,RGB,2,3} tests pass against
the new primary baselines with no fall-through to alternates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant