ITKDissolve
Overview
This is a module for the Insight Toolkit (ITK) that provides functionality to discard pixels within a masked region. Unlike masking, the pixels in the masked region are replaced (dissolved) by their nearest pixels outside the mask. This can be useful to clean-up label fields, e.g. to remove small islands/holes or remove entire labels, and replace them by the adjacent labels.
The module includes a filter called DissolveMaskImageFilter.
import itk
labels = itk.imread('path/to/labels.mha').astype(itk.US)
mask = itk.imread('path/to/mask.mha').astype(itk.UC)
ImageType = type(labels)
MaskType = type(mask)
dissolve = itk.DissolveMaskImageFilter[ImageType, MaskType].New()
dissolve.SetInput(labels)
dissolve.SetMaskImage(mask)
dissolve.Update()
modified_labels = dissolve.GetOutput()
itk.imwrite(modified_labels, 'modified_labels2.mha')
Or using the pythonic API:
import itk
labels = itk.imread('path/to/labels.mha').astype(itk.US)
mask = itk.imread('path/to/mask.mha').astype(itk.US)
modified_labels = itk.dissolve_mask_image_filter(labels, mask_image=mask)
itk.imwrite(modified_labels, 'path/to/modified_labels.mha')
Installation
To install the binary Python packages:
python -m pip install itk-dissolve
Metadata
Release files for itk-dissolve 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 34.3 MB
Release files / itk_dissolve-1.0.7-cp311-abi3-win_amd64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 555.7 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2d904fe761c50f03e8086b4de824f89bf771eaf1653b49e4d3cb7f72e3c1f86d
|
|
BLAKE2b-256 checksum How to use checksums |
dd314f19208c7135f5e528ce98afc452af076ee69898911ee8d35b8f58cb7808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp311-abi3-manylinux_2_28_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c0c24e25b8824fc780fe3375dc1308a4fd48dbdbceb3c12e09aaf67a36e09923
|
|
BLAKE2b-256 checksum How to use checksums |
e0da7ecfae0c5b19491ea2f54c20fabc846483d48bd889c2aea34bdaf96d82cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp311-abi3-manylinux_2_28_aarch64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c92d991194ca23db748e180c3bcf15d2ccea503cdae43b0d235693e699226a8c
|
|
BLAKE2b-256 checksum How to use checksums |
0d8855bd356214226ec2df6cd9dacad1158edfd28ad1ed2a3ddfc5fcb650e136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp311-abi3-manylinux_2_17_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 700.8 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c59c0d569118c77a5d0a6403380e97694b1f23b94dbbff307164f1597081c807
|
|
BLAKE2b-256 checksum How to use checksums |
8b3c598970d586e38c46c8bbbd6185cea8654940be7d3b426c933b574a878d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
24d8ee24992b4c61262ef454da857a62cab3e5cb98af74043cff936ac2f04961
|
|
BLAKE2b-256 checksum How to use checksums |
f09e34e60b332aadaaad5cbf1386d7fb6dc8dfb54f70bb891f50eec095e795c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 470.7 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9b6a53453649920da1b1c4ffef30950bf27f1988080735db4ea1892364123ad4
|
|
BLAKE2b-256 checksum How to use checksums |
2df3ed9e51fdd51490369173b03078312c433599f6688e763b50ef67ab2713b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp311-abi3-macosx_10_9_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp311-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 572.3 kB |
| Tags | CPython 3.11 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
bf3ce4c86dbeed0fa30df8f8f63e39074616b9eac9696452e1d48f9439ffb6e2
|
|
BLAKE2b-256 checksum How to use checksums |
cc66d11260634c3d8276687f970cff9d33b94edae4f5214ba9e1033a1aeb5070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-win_amd64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 554.6 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c5592c471a3456bf37625652b7113f8888dcabe08414b25373bd1b7342d06c6b
|
|
BLAKE2b-256 checksum How to use checksums |
e17b9bdee3b0990cf642739773d2344d34602e749a1269e92bb0d956e2594711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
60b58fcd81a79e2e9cc2a4ed0de5d57f2484e524bdf75f88399fe0e0feaba992
|
|
BLAKE2b-256 checksum How to use checksums |
cc707912cbd132f34f070adb7ebae19bf5e5d98f2c03e4730dba1be054fb2293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-manylinux_2_28_aarch64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
acc748e1fd0cfbc79613ca02375b38e4f9ce3fff15b17ed48df4caa99d0f8994
|
|
BLAKE2b-256 checksum How to use checksums |
3c62de025a4325cb0a21d3c359fb52f31d7b29080ccac5a955e7c2808cdc4ba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-manylinux_2_17_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 708.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
cf84e503abcd529363d9dba2b90b87cdeab9112f853d52cf6da5e1b6c1b80db5
|
|
BLAKE2b-256 checksum How to use checksums |
03a22d7c3955f3f0ec11cf137d2114d1646f84e0b2f4e370e608c1447e5ff8ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
541a7990c9e1008ad2d3704d29072bed16e59c61e09aaaa8636edcfd8370c511
|
|
BLAKE2b-256 checksum How to use checksums |
2f33d9c9800e3099e0e4334c2dc1dc27746ac1658e0fa35f21142baf764b6f2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 466.8 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3482ed195a676fb164fc785d05e5d96051dee40b4d90854303759c56bd066bb7
|
|
BLAKE2b-256 checksum How to use checksums |
82bcf927929977c1f91500464598177f524f8862334b046fc8c45199ce022b67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 572.0 kB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
ffcc1b74e7e70ccaa5fc7e002b5d95e979c69b1b1a771d6fc1f1140aff1e071f
|
|
BLAKE2b-256 checksum How to use checksums |
8d4e1cfcacc6c1a1559a785061b5b0cbde8f22f26cb4d6c793ef9352a8c94657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-win_amd64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 555.4 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
12ff7ad36f88becfb1f5ca0a7a62d38cf76f0c0f88ad981941ad4b988e4e7934
|
|
BLAKE2b-256 checksum How to use checksums |
3fe59587993ee231f075f1c0f3c3fa694eff9120356c115d332e33d0014864e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-manylinux_2_28_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b4bd170f2608786ad862338006ef51143c79bf03b3c413aa0bc4d1cd35f37d63
|
|
BLAKE2b-256 checksum How to use checksums |
ef0515b5a88520a393925c0165dff4782a66a22968334a26b7672743342234f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-manylinux_2_28_aarch64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
efe312f39209680dd62b8d5a2f0eaf64744257d754f10af6a9ca57f59895c074
|
|
BLAKE2b-256 checksum How to use checksums |
780aa21e3d8c479ae62506b268a497f6a1deb1b7d6db9573a02a581f1cb9df75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-manylinux_2_17_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 707.8 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
24ad03712c954da1622aaf1dbaa6662c7ba884aeb72d40891b007d3b4f84db78
|
|
BLAKE2b-256 checksum How to use checksums |
722faa0cc05315e97e8911929d19c5ffd9fdb7fd5c24aa46ffac32265488fe91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
cf983be4e93e84c4202d7d2e5d1a41de4daac3748e40e2a6b7811c568c892c0e
|
|
BLAKE2b-256 checksum How to use checksums |
efc4d0afc89798eb69d7bfa61752b76b2b0fd7f11f338418054ccd62e54bf4e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 466.9 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d24f0dc319173478d92fd28c2b621da83bad417df2fdde5b871d59a3585ccfec
|
|
BLAKE2b-256 checksum How to use checksums |
02d97366712f8bff0f6765bd963ad1a64b9c9dde4f3ecb2f40d108f13a263b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 572.0 kB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
c19ee57809c5cd84c7197811c884b70f7e017ecafb576448447fe27281cd61d4
|
|
BLAKE2b-256 checksum How to use checksums |
aca55619206d6d040ea881bd874697c68541fe3de454572db2137be89acbdeae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp38-cp38-win_amd64.whl
| Download URL | itk_dissolve-1.0.7-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 582.0 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1fe4fe4d8fdac2c828da49893c43161470af51081ff9d8d17d1dadc6029000b6
|
|
BLAKE2b-256 checksum How to use checksums |
865a9293597055451e657b777394393c426f59b68050864b52d56dc5c85d4ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp38-cp38-manylinux_2_28_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp38-cp38-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e6a99a726dce876fa5e21b972c00ca7cb8810a8141c94b0730ce18a07d3c4851
|
|
BLAKE2b-256 checksum How to use checksums |
7becd265e677651a4d272fc4b6aad764ccdb292b6b92050bb162d70e4813c317
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp38-cp38-manylinux_2_28_aarch64.whl
| Download URL | itk_dissolve-1.0.7-cp38-cp38-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
0d4d378f2e52ab19fb19c7fed043780a3217d9b78ff934ce6e05d2880c478972
|
|
BLAKE2b-256 checksum How to use checksums |
39027673a0ffd5a7605b4b304970ec5705374dd60b126905013911e08a917de8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp38-cp38-manylinux_2_17_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp38-cp38-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 707.8 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b0d65cbf795d11e7aff2a55b36442674ea09d56acdb26e44f13d32a12c141ef0
|
|
BLAKE2b-256 checksum How to use checksums |
8ae7b1c04e930dcd3f99e5e0b4d5d16cd74a7d37c058cca27f675f6ba8128d6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
55b643565999cea5adf431f2e553321199d74bd3ff48edff24c3b33fbafb4536
|
|
BLAKE2b-256 checksum How to use checksums |
a747b941086832ab9828562541f3fb64f1afbc2df45d94551492744b67c6a8d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / itk_dissolve-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | itk_dissolve-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 572.1 kB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
4c3464c18698cd80d7566a876cad144d764601420ca949d538c72905b13ab20f
|
|
BLAKE2b-256 checksum How to use checksums |
4d09b546304028ba19f4f6c1aa0f29abeaae6b2a3df287c326380bd0b4d72ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for itk-dissolve 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.