Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install ninja
python -m pip install itk>=5.4rc3
python -m pip install itk>=5.4.6
python -m pip install matplotlib
python -m pip install itkwidgets
# Issues with 5.7.0
Expand Down
2 changes: 0 additions & 2 deletions CMake/ExternalData.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,6 @@ function(_ExternalData_get_from_object_store hash algo var_obj var_success)
foreach(dir ${ExternalData_OBJECT_STORES})
set(obj "${dir}/${algo}/${hash}")
if(EXISTS "${obj}")
message(STATUS "Found object: \"${obj}\"")
set("${var_obj}" "${obj}" PARENT_SCOPE)
set("${var_success}" 1 PARENT_SCOPE)
return()
Expand All @@ -1013,7 +1012,6 @@ function(_ExternalData_download_object name hash algo var_obj var_success var_er
foreach(dir ${ExternalData_OBJECT_STORES})
set(obj "${dir}/${algo}/${hash}")
if(EXISTS "${obj}")
message(STATUS "Found object: \"${obj}\"")
set("${var_obj}" "${obj}" PARENT_SCOPE)
set("${var_success}" "${success}" PARENT_SCOPE)
return()
Expand Down
49 changes: 18 additions & 31 deletions CMake/ITKSphinxExamplesExternalData.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set(ExternalData_SOURCE_ROOT "${PROJECT_SOURCE_DIR}")
get_filename_component(_ITKExternalData_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${_ITKExternalData_DIR}/ExternalData.cmake)

Expand All @@ -18,52 +19,38 @@ if(NOT ExternalData_OBJECT_STORES)
endif()
list(APPEND ExternalData_OBJECT_STORES
# Local data store populated by the ITK pre-commit hook
"${CMAKE_SOURCE_DIR}/.ExternalData"
"${PROJECT_SOURCE_DIR}/.ExternalData"
)

set(ITK_SPHINX_EXAMPLES_DATA_RELEASED_ROOT_CID bafybeib6yijwyl52gkalx6griio2wsibowlrt3v5wmkkuqlnuvku64c3ra)
set(ExternalData_BINARY_ROOT ${PROJECT_BINARY_DIR}/ExternalData)

# Expands %(algo:lower)
set(ExternalData_URL_ALGO_CID_lower cid)
set(ExternalData_URL_ALGO_MD5_lower md5)
set(ExternalData_URL_TEMPLATES "" CACHE STRING
"Additional URL templates for the ExternalData CMake script to look for testing data. E.g.
file:///var/bigharddrive/%(algo)/%(hash)")
mark_as_advanced(ExternalData_URL_TEMPLATES)
if(NOT ITK_FORBID_DOWNLOADS)
list(APPEND ExternalData_URL_TEMPLATES
# Data published on GitHub Pages
"https://insightsoftwareconsortium.github.io/ITKTestingData/%(algo)/%(hash)"
# Local IPFS gateway
"http://127.0.0.1:8080/ipfs/%(hash)"

# Data published on GitHub Pages (note: not complete due to file size
# limit)
"https://insightsoftwareconsortium.github.io/ITKTestingData/%(algo)/%(hash)"

# Released data rsync'd to Kitware's Apache web server
"https://itk.org/files/ExternalData/%(algo)/%(hash)"

# Restricted gateway with released data
"https://itk.mypinata.cloud/ipfs/${ITK_SPHINX_EXAMPLES_DATA_RELEASED_ROOT_CID}/Objects/CID/%(hash)"

# New data on web3.storage
"https://w3s.link/ipfs/%(hash)"

# Released data on web3.storage
"https://${ITK_SPHINX_EXAMPLES_DATA_RELEASED_ROOT_CID}.ipfs.w3s.link/Objects/CID/%(hash)"

# Released data on estuary.tech
"https://api.estuary.tech/gw/ipfs/${ITK_SPHINX_EXAMPLES_DATA_RELEASED_ROOT_CID}/Objects/CID/%(hash)"

# Protocol Labs gateway
"https://${ITK_SPHINX_EXAMPLES_DATA_RELEASED_ROOT_CID}.ipfs.dweb.link/Objects/CID/%(hash)"

# Gateway for arbitrary new files, uploaded to web3.storage
"https://dweb.link/ipfs/%(hash)"

# Protocol Labs gateway
"https://ipfs.io/ipfs/%(hash)"

# Filebase gateway
"https://ipfs.filebase.io/ipfs/%(hash)"
# Gateway for data pinned on pinata
"https://gateway.pinata.cloud/ipfs/%(hash)"
# Cloudflare gateway
"https://cloudflare-ipfs.com/ipfs/%(hash)"

# Additional gateway (modern but has redirect)
"https://dweb.link/ipfs/%(hash)"
# Data published on Girder
"https://data.kitware.com:443/api/v1/file/hashsum/%(algo)/%(hash)/download"
# Data published by developers using git-gerrit-push.
"https://itk.org/files/ExternalData/%(algo)/%(hash)"
# DataLad repository on gin.g-node.org
"https://gin.g-node.org/InsightSoftwareConsortium/ITKSphinxExamplesData/raw/main/Objects/CID/%(hash)"
)
Expand All @@ -73,7 +60,7 @@ endif()
set(ExternalData_LINK_CONTENT CID)

# Emscripten currently has difficulty reading symlinks.
if(EMSCRIPTEN)
if(EMSCRIPTEN OR WASI)
set(ExternalData_NO_SYMLINKS 1)
endif()

Expand Down
4 changes: 2 additions & 2 deletions Superbuild/External-ITK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Get and build itk

if(NOT ITK_TAG)
# ITK release 2025-01-02
set(ITK_TAG "v5.4.2")
# Track ITK main, matching the itk-git-tag used by the C++ CI jobs
set(ITK_TAG "main")
endif()

set(_vtk_args)
Expand Down
2 changes: 1 addition & 1 deletion Superbuild/External-Python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ ExternalProject_Add(ITKPython
DOWNLOAD_COMMAND ""
CONFIGURE_COMMAND ${Python3_EXECUTABLE} -m venv "${_itk_venv}"
BUILD_COMMAND ${ITKPython3_EXECUTABLE} -m pip install --upgrade pip
INSTALL_COMMAND ${ITKPython3_EXECUTABLE} -m pip install --ignore-installed itk>=5.4.2 sphinx==7.2.6 six black nbsphinx ipywidgets sphinx-contributors ipykernel matplotlib itkwidgets[lab,notebook]>=1.0a51 pydata-sphinx-theme
INSTALL_COMMAND ${ITKPython3_EXECUTABLE} -m pip install --ignore-installed itk>=5.4.6 zarr>=3.0.0 sphinx==7.2.6 six black nbsphinx ipywidgets sphinx-contributors ipykernel matplotlib itkwidgets[lab,notebook]>=1.0a51 pydata-sphinx-theme
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/ITKBlackConfig.cmake
)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreie4uitslnavl6u3s4w62gkz6r3wssoctdav7zaqmrt4xfasouf6f4
bafkreigr6n4hinf6almoyfihuxk77lqeystehrlr7rmrdvvpydpraray54
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreiaffqu7nnoby6ix5o3pg5eiucj7ofsxx3wnij4r2kugbdy4jhvuia
bafkreibyxjcephwjj37w7lftdikdpvwnfpk6ddhx43nn7hvjutekhwir7e
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Apply a custom operation to each pixel in an image.
:alt: Relationship.png


.. figure:: Operator.png
.. figure:: Operation.png
:scale: 70%
:alt: Operator.png
:alt: Operation.png

pixel-wise operation on 2D vector image.

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreig3f4d5hwfz2wzmy56o6tc5mb3ljd6jmtsjoruxqfchlz5yv6ixuy
bafkreiekhuy5b6ymfj5edahs3ncdjjxpymrtnfl5whvyg3n5qz6bs4pbea
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreihasqn5hlzyvlxkjqjfv5tupvvyixfiknai2puytootv523dd3tcq
bafkreif42v622rgfhpb2dm3tn6nqmdvc3bhdhx7zo2z4jrrk2c5lknjfti
2 changes: 1 addition & 1 deletion src/Core/Common/BoundingBoxOfAPointSet/BoundingBox.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreickdblw4cjduumqnb7gn3wtsjshvqrvezh3k7krz657xsosvur2ry
bafkreidhk57tyxtuiecfspgpm57zhtyxvo2zsxhd76py3fzt6d7ivr7jd4
2 changes: 1 addition & 1 deletion src/Core/Common/BresenhamLine/Operation.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreia4xxrlmsbcivkpdtl2ja2mskpuuaht43rmmrt2j3qjqp5ymsf2v4
bafkreifgp5rnawpvq4lkjd6cngubwwcjy7hdbrr4h3lifriyk2t7n3nzbi
2 changes: 1 addition & 1 deletion src/Core/Common/BresenhamLine/Segmentation.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreihi6qoq7pqyqf3defuwz7ntxspjurtywy73iba4eyaaqgfm6lmbg4
bafkreie5puikhxxdz2ng7ar6czjqfus6wvtvx65ew644d7oklgf3klhii4
2 changes: 1 addition & 1 deletion src/Core/Common/ConvertArrayToImage/Relationship.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreihcn43nd4b5dthz4yrq77tyjjfelpvzzmiutnm2slpaznnrscowoq
bafkreihumtkldoks4bwxcmbzvinys3kcstlr5ax74d52o5ccio6m5zsgrm
2 changes: 1 addition & 1 deletion src/Core/Common/ConvertArrayToImage/Sphere.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreifj3dfi57rvwruuvk5ycftmobp2p5mdho7qpi7x7ykuujbkzb2lca
bafkreifgxm4kvz36l36qtu6pnecm22yb3ghswwbpvbfk4c67xyijbkxfva
2 changes: 1 addition & 1 deletion src/Core/Common/ConvertArrayToImage/Sphere3D.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreid3uloy2yfjqggy5d46aghpb4b5v3q2xaqylkg2uoqsuqc5dh4s7q
bafkreideyzfcs5tf6c7puc6kubsbmzh3houvqycjpmknjeybw7cjzqox6y
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreigdntizd2xiqvwywb6vab4wwbxcozlm4yghjkoc7dzugzipvhudne
bafkreifsa2jo72j4il7ozazxz54r3uhltqnowpwhhrdjsqckm57c3mrag4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreibohzttygqnnh25zror2z5vlhypmwtvfgyvqrfebhcxvme7mehbvy
bafkreig25mzui7zx2igtvhh4ftlxexhrkgrvwdv5nybxhuoxtklilrbwhu
2 changes: 1 addition & 1 deletion src/Core/Common/CreateGaussianKernel/GaussianBlur.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreifsacuklxb4nc4zo3g3dug7xvsf4kcpt5oosguhcngq5pysgqgnia
bafkreihdheuit2ay3xbodmnr7vftdkf6wa772e5fifimnvfxqlykrgxl6e
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreidlnhsxjw7ivecwinizozzrss54z3hoezddflwcwfag2f7gqjqxgm
bafkreib6jvmimlki4zyj5t5jwktiarywvc6ysjotmdb47swpsuyng6ozda
2 changes: 1 addition & 1 deletion src/Core/Common/CreateVectorImage/Operation.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreiefasljtdb5w2lpiw3kptqknfqdngzgq6waff2ims43wwsapnjnba
bafkreifsrpkcchoy6q2qxnba7ughs2oipolrwfsz3pnohpf2splmmzyvmi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreihtmliqoydru3yo5sbxsddu4sq4hkt6q5e6tnrawz4vbtqrjtwama
bafkreia5i3pe7lwk3cdkrp4xoan5zd32zvfolo5fo7nxup5ozluerwjlem
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreihbzuilqqwwwoyfhhmke6vb5fby2llly3rmtujmbfujdl2qr3obvu
bafkreiaukoe4ixr45mwg7u6hjyaqmzwlxxwcdl4r33mqgodt55ru6dlnuy
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreih5hkqhoalqpj27vwj7qlq2krgzoxerkgil2ix5ggyh4u5gickawq
bafkreidvqescwxj2aol6cor3yvkhkwmoif3drjipdltel2kjjkd3qdk3xm
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreickuima2tmul6deufw2xz4tntnq6buzondwva6c34mq3abzkfbdfm
bafkreifhssibxiumouehdhealbpwkfr3t2etdafvkmpxedjbbmuamdzzha
2 changes: 1 addition & 1 deletion src/Core/Common/MiniPipeline/MiniPipeline.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreiact2ar5jwdldtg7xdkma4goxozct64cwstqcdl3wwib2mycjaeia
bafkreie76vvgdlcczzaefizla7cpwmo3bhvo6ylomdksp5endfweqem3s4
2 changes: 1 addition & 1 deletion src/Core/Common/ReadAPointSet/tetrahedron.png.cid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bafkreibbwfyijzai7xehhftrvkgxhu4aeqyez64sft7cavi7pj24ekuweu
bafkreibm6jmun54klek4lxgknyqajlqfi4cfyekcigjdkumxppac6gy4yy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafkreifwo7hv3ewmpyo6g6ujitkkqfm546umb272tsvvdugy2rkvxajtta

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafkreibttqlwhmn55vgvqfdh5rz4ya6zy56svjpgjd4h4icwjhzp4a3w4u

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafkreiahxkneael4refxvgt6y46kws5biao2gum3ysmsofyhgtbfuzajva

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafkreihmpor3o5ikomoa2nlzt4en5zqn5qsylfpuzrojb6b42nk2jzimte

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafkreig2dhzc6oy6upxrzx7hxxq2h6uk6e7sjbluekxsfw6uez43jabe6a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafkreia4bojkagedcb7aklwgvw6a4gvfi3vbuigevallt4mip6fytuhtzu

This file was deleted.

Loading