ITK Module to extract a PointSet from a labeled image
Project description
ITKLabelPointSet
Overview
This is a module for the Insight Toolkit (ITK). The module includes a filter to extract a PointSet from a labeled image. Additional filters and IO classes may be added in future versions to support pointset registration workflows.
import itk
labels = itk.imread('path/to/labelmap.mha').astype(itk.US)
D = labels.ndim
ImageType = type(labels)
PointSetType = itk.PointSet[itk.US, D]
extractor = itk.LabelToPointSetFilter[ImageType, PointSetType].New()
extractor.SetInput(labels)
extractor.Update()
point_set = extractor.GetOutput()
data = point_set.GetPointData()
for i in range(point_set.GetNumberOfPoints()):
print(f"{i}: {point_set.GetPoint(i)}, {data.GetElement(i)}")
Installation
To install the binary Python packages:
python -m pip install itk-labelpointset
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file itk_labelpointset-0.1.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 641.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9407f6cd40a5a13f5fb9ce2517aa65fa17701b737520db744cb13e6dabd28593 |
|
MD5 | 1d95b50b263f6ec3f2d0b82681425d02 |
|
BLAKE2b-256 | 8903d0746d7258b78cd632ea7e019306c2f04b02f5354c3344e6bd10a6ee99c5 |
File details
Details for the file itk_labelpointset-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e092ad10398e0493a27050dc8be6a97343b209033980f08123ec5525fd4c959 |
|
MD5 | 3e95c503c1f395e2962ab6a4d8cc4aeb |
|
BLAKE2b-256 | 9d793d8fd605fe50b4ab991401497141071e58f51e35ee1ab0112bd6063c99ba |
File details
Details for the file itk_labelpointset-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1738cade8a5a5c4a032cf7c8f3ae22863df02a322b117fcdab4fbf1c9c87ceb |
|
MD5 | 314e2c71e9c22ac22c9b63c7b8becd79 |
|
BLAKE2b-256 | ec2bc6d20129b09d9bdd8ab8eba6ef11b95b942473ecdb2751a54f1258b563e6 |
File details
Details for the file itk_labelpointset-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8011e4fc55e0b6eefcb91b99fe8d388ed4c8e9bea9397641513ce8be09900a2 |
|
MD5 | f9b74c97a3bda1c88851f837347553eb |
|
BLAKE2b-256 | 202f3a9298815389a542540a921aa3e7c45c5d7db7a143aef3a931d77540009a |
File details
Details for the file itk_labelpointset-0.1.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 641.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce681773edeff082cc673367e4890bdd95def332fea10702875d290e71f13d1a |
|
MD5 | 19d8cd361eecb0782a274be6314104c3 |
|
BLAKE2b-256 | a154b302db2694c7b5bd3174c4bb5c8f1cb37914dd49cc324687fcedbef61a5e |
File details
Details for the file itk_labelpointset-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08229daaf1cea5427cddeaec0a8437059eb991ff3f28ab77fb5cf8cda8afd2cb |
|
MD5 | 5c4d07d9814ce2affc6e2cb446630da1 |
|
BLAKE2b-256 | 1985b785c19335a22b5fe0e1a90ad0f944734a196e27fae0a9e9679063ea245a |
File details
Details for the file itk_labelpointset-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f293493814ef1ea41af60e2ced61f3b977281ccac2f6abab16686a0e520e27 |
|
MD5 | fe972d220c5631c052f306b88d606ee9 |
|
BLAKE2b-256 | e33e9b0673d85c438164ebbf563a206bd8fb091acc84b1d8b3458c7f387a5f36 |
File details
Details for the file itk_labelpointset-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df66d9c6baa637d61c0d3b0be954fb25fc7e8ce03261ebc3fe670628fa5e494c |
|
MD5 | ddea6e9139e89faa9a147f4d46807e05 |
|
BLAKE2b-256 | e2eed6fa92d772ed364020682f826d304d5304c5c7786c373a330863fff4beaa |
File details
Details for the file itk_labelpointset-0.1.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 642.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a6933405baa0cefaeb46211ccfdae3f75ff8d043d34b2a216fe654a6b1216e0 |
|
MD5 | 4ed322cdbb57cd140e93b487a71ab87c |
|
BLAKE2b-256 | 98ef6fe44d8c307aba21531a2b3803fac608ccf117a747548f28f85fd7a3124b |
File details
Details for the file itk_labelpointset-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71378f76cf8b62d58bc88684822b2848c3514f433297db4c32ec32c96e6f96c3 |
|
MD5 | 7c52f2a9680c89e14fe7b750e9312af9 |
|
BLAKE2b-256 | 3aaf45eb12ea9d83f1ac501800d5841366339be0f9d6eb432d4cfdd53448b4ce |
File details
Details for the file itk_labelpointset-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1577e993805b16facc295928253fb5be68d9a24b118c148e84824bb91e98ba74 |
|
MD5 | 741dfcee237b3a5e8599fc2bad9d85a6 |
|
BLAKE2b-256 | 6a5e6d4f22ccc0dd956728a92d54b61cddfc1c0cd0e2251a05c2238e30395fa4 |
File details
Details for the file itk_labelpointset-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e654688b27185fe8288d31ddc92514958d4d1ff4cb89c73aeca22352212e64e3 |
|
MD5 | ea13db60e0ab11b713e370361227289b |
|
BLAKE2b-256 | 60c2bc46d9b13dd25f99035c6cba7a171fa2e0fb6f22759de7b4ca95d0cdf7bf |
File details
Details for the file itk_labelpointset-0.1.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 665.7 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945dbaef65fefaf519a7356e1a76009483fc9b8c2aedcae437a47ad8d92b65f4 |
|
MD5 | 299a17848174db9d9cd4245cec74ba46 |
|
BLAKE2b-256 | 5a65af71c6bfb6703afb5cfd0f84455f83ada5fba9c48017237378a7a9f00f4e |
File details
Details for the file itk_labelpointset-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e34bdf3f3a7fcc17236711c695cb74fd85e0c0e0db0645a79c55fa2e6fcb1b |
|
MD5 | e9bc7137eb1eba9bd6e328c48dfff1aa |
|
BLAKE2b-256 | f03df4d380fbc84b4033055cc60da3da8ec359644a2d5a60616424e88ccba9b9 |
File details
Details for the file itk_labelpointset-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e575ada3b3a3a23722bb19577e240aec71e3b5e8bd75cbf82f711237f08b1bef |
|
MD5 | 88e433f224958194ba067961c5bafb3d |
|
BLAKE2b-256 | 06a074181b9bff50fa89bea80f9d705717fa86144456e87ec16b8be14c890ac3 |
File details
Details for the file itk_labelpointset-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0a0639097584482991bc51f345f22ac79d5dbad276505991dc8073fc77c4799 |
|
MD5 | 94dac56be56119204aacd3e44242084c |
|
BLAKE2b-256 | 35e5fb7fcaade9a8a6948220258935d62ff1e33b6cede52befdf197b9e6fccca |
File details
Details for the file itk_labelpointset-0.1.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 662.9 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d009840c69f3ba162fb63fafa02e79da0135a06ddab342132c7ffdb1ce8410 |
|
MD5 | aebffaf46e7e4797cdd4484ba3934948 |
|
BLAKE2b-256 | 9f4e93e4f8004180bc7e2c206b4f795647d3a1fd6fd8cd747892890b662461ea |
File details
Details for the file itk_labelpointset-0.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb6f1f8da91e588d82c6a32718821c908a29a4fbf497e98f5516ad15385659a |
|
MD5 | 9e703f47f18fbe06eca2eec2488eb47f |
|
BLAKE2b-256 | 7be1dc8acfcc00320381aba95c5c9de8646665b74bb7782df54996da0564ae1e |
File details
Details for the file itk_labelpointset-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6744f7eb807c8ca01e838457578bb0b231ede9896644e738ca0334856bd5fdd6 |
|
MD5 | 597e0eb66ed2ad69bc46d3a7e171429d |
|
BLAKE2b-256 | ae5d0f5414951fed0f71094bcb2ee6e6706ac3588edcb18b741f36cbe2b48b26 |
File details
Details for the file itk_labelpointset-0.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: itk_labelpointset-0.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a718c262aae73eef4a0b7a18158b983cbf7874200b5d6479f140443778bba7e |
|
MD5 | 7d8ed421186337f62f8275eaa44dae4d |
|
BLAKE2b-256 | 039344844314f34669547c638a6fd70561a90af1ea3702411ad5afa9d5cb8e3e |