Skip to main content

ITK Module to extract a PointSet from a labeled image

Project description

ITKLabelPointSet

Build Status License PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

itk_labelpointset-0.3.0-cp311-abi3-win_amd64.whl (749.0 kB view details)

Uploaded CPython 3.11+Windows x86-64

itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_17_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp311-abi3-macosx_11_0_arm64.whl (836.2 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

itk_labelpointset-0.3.0-cp311-abi3-macosx_10_9_x86_64.whl (942.3 kB view details)

Uploaded CPython 3.11+macOS 10.9+ x86-64

itk_labelpointset-0.3.0-cp310-cp310-win_amd64.whl (739.7 kB view details)

Uploaded CPython 3.10Windows x86-64

itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_28_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_17_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (817.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

itk_labelpointset-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl (949.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

itk_labelpointset-0.3.0-cp39-cp39-win_amd64.whl (745.0 kB view details)

Uploaded CPython 3.9Windows x86-64

itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_28_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_17_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp39-cp39-macosx_11_0_arm64.whl (817.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

itk_labelpointset-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl (949.8 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

itk_labelpointset-0.3.0-cp38-cp38-win_amd64.whl (772.1 kB view details)

Uploaded CPython 3.8Windows x86-64

itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_28_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_17_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl (949.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5557a82b3bee63c84d69e737cdcba01ebfd589f4c63cfc5a0dbd803d06663671
MD5 07fb4119a375a1e3b841754b398f2266
BLAKE2b-256 4e5cf4617e47d391919172db2db7990caff7562f088837f09c0ecc07ab6d6418

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b56e882945ab40ca0ad7d22b30919302ef7001e678d7ce11ab49f337461283c6
MD5 823a67832807a0f2bc8e46785d98f334
BLAKE2b-256 819f0bdc270ae952dabfb5c0ba8cae1892a4c9fc8a47fe508b3c70e8e02d7ed7

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 00e53c224a05d0811fb6a0b34d882088252ba284250411fab9e4b1f741c494b7
MD5 71821013af961b98502dc9bce0225dad
BLAKE2b-256 6769dfdf0af384bb98b20dc778f18341ac0831b60bb2d0ce19389d824ca0f72a

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f44869b49e11e00a2a569c0a848580126b767c2c5a19150262161f3b7c2d73e5
MD5 9782d7762209c7ba9c12e500b2507a10
BLAKE2b-256 5bab72de0b7136f9179db652dd1c83dc95a1439ec706b5b269485c8facac3d52

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 367abb98ed26bc7de55440037a9d3316d807464899164c94f938643478082f98
MD5 60c6e1d6cd707edb9662548ecf7f33f8
BLAKE2b-256 1cceeca62bdb385720ee540eff0c7517485b109cf92d4d41691c85e463cd1584

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea3d5e9b675d3b0950ef5990d6c74bb78e4b71fd898d09aac4f60d12c6215e8f
MD5 5968fccccc3885818ecb1331187188c5
BLAKE2b-256 ca597c1ce09283616bbe9cfaa8914ff309f33299746251b5c469f36323f2e662

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp311-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp311-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 48f3cb009074b42773bc55084d4d8469c584fd0282e46f3231bde4a1f1319fb3
MD5 5810665c485f455580c76f671c094a20
BLAKE2b-256 7446b03749b69524e779dc9913eb8fa153b14de3c046abbcee125508758d59ca

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 456646ed2da37463d89923480980c1b125f18845160095c694fa1cd28257da3a
MD5 bc3acd37a0e9794d1d03421cda5b50b4
BLAKE2b-256 dd4923bafcd77c264104ed0b65c1f21935ed001d72ff9456e7dc1bc7d5d72394

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e4605c0044d699a733718907eeeb59155e75248d5791fa8b5c93209a4379cdbd
MD5 52dfbb785b771d3cb2eac4c2cc06b912
BLAKE2b-256 bdb21b6fd70414cf7cd47f88f0856e386d680631cf650ae895d546d3f6ca2447

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5486e2f56d43830e4f649413de703e187989e3a178caa45f30e8f75ab3c81993
MD5 1da7f8544f1c74d5988d30ee56e0c023
BLAKE2b-256 7f358be0708d5e80be5665a3ac5a7f5ae016c1a914071f01aac4d907c8594349

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0db7e586ea6c284ef3439ee4a1fd8f089229b1796fa333c4c3555fa55fcb136b
MD5 b7f75deef013973024a50029d3cdc54e
BLAKE2b-256 74767d63a2d8e14793bd9b79b2fb01f55a41bf6d45804c25ff0c2a58314118ec

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7da30f0e8a37ae4f47ed81525a201c4f9e81bbcbeb03907cba9f25b123e89bb2
MD5 b423352a72979dfb60f9054a0adfe16a
BLAKE2b-256 87718bc96ace24591bbeb243b14e5e37c5fc4d6919340f7f9db047cb9911cf90

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19ec231b04beaa6f49b0aa62cbf5194469ad53c9b018a6fe51eda28abb4c33a9
MD5 6da87ea8f6a5e7c4d9ec182499318fc3
BLAKE2b-256 3314771b41dc9af1d7d5ed25758fcb00ba8f951c2548af8170c8f9f13005d377

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 497c250bbed1e4427238e7b5bf1adb108d38c38a407dae520d973957d153d56d
MD5 a0dcd8f55cdbf8e857000cc4bd1aa6ed
BLAKE2b-256 706312fed7383c5afb2add247eea47de4487177097119adbfc84c6289ea7d024

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 beb65508db07035172f741ef9d63ba77b5b824d1e1cb2a99af14763e095281b7
MD5 4db0ae2e402d91c4d774d1f5f5155011
BLAKE2b-256 e8fdc74ad7e74077c1be466f1b9704b98e8f43f1667591882c55e4681a7cc972

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e1c5b1f223678028554d7de031cfba78eba953709ff68032f83349b544ed73a
MD5 97e0f81f60454b9ff974cea6f15f5354
BLAKE2b-256 1c17479d874e43dd0dd0451fd238fe22999badb33a42a544dae008d4d9b94a71

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0c1635696506a459503e1c4ebedc43c41d4b10d9ea193bb898d57207fd5963ad
MD5 1d47be2c7e598ef3ba767734b03331f7
BLAKE2b-256 54b450b6540bc60fc7b2a219896627c2e3c42a14843275f49a6d4745b714a41e

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a0eda786cbbf34d339490a1d87809ffeff1bf655c22cd1491dd4641af4ee6931
MD5 1a0dbd31c0634554cd4850f322ef4cf3
BLAKE2b-256 1ce9143636349a4b3be62b3bb474a99ddca87590867ee1aeace44b0a9665d8de

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34117ba638bcbcd3f6aa8a7c0b293047afc20bda31a5e84e433409a43a5ed4bf
MD5 4e639f34c22f0500c10c2ecb300ab2fe
BLAKE2b-256 f7c18e6bc1ea75a3fb81da8bf05c1fdf1ee84f1f8298e308d87757a0a42d8e98

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8becf665b39e56ab942c4b58632db2be177ea47a2816b29edded07d8ecf7c46
MD5 275e94e2a85a5701185e19ca9ae912c5
BLAKE2b-256 64be8c8b0fc312a4bef9ce42e6fd5de18420ccff851e879af442f24d3a5bb735

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9838c16dbdcc2254ef0479990492644473570fa260ba1d563c203ede8a846e35
MD5 bcabab469111e230faec0487dbc52986
BLAKE2b-256 ded316454b1ff4d2493c1e11896a715b39150c9a7aec7c162bd7a26217cabeab

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cbc37c1464f2b399651318621d537e6d950fb2984388030df8b85efb48904ede
MD5 fef7503fe0e00c0e4d299085c4d595dd
BLAKE2b-256 657e2d22ba40c3850f53f9ce10f2f527ab53fc89bc6b3299b3f8ae56f7f94c99

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5f299fc177be321159368eb17841ac1e4d6dd30779a3c6c10638bd7a80d4caa6
MD5 744567f1e71a7f993eabf3921d338694
BLAKE2b-256 d92e1f80e2957f9015f710d792559e05b06858973f917db5d63ea5bba3e4c286

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9301968daf646433aa6de036e0377c1eb6ac38189dc26d5563b433579f200928
MD5 79c57278efb80f9417647bc7ea83a2f8
BLAKE2b-256 cd0cfb4f9083079ca5174cad75ead72a38baaccef5bec750be0f9f7e39e45aaf

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 97127ba5f58e5bf993a37495b01385783f20ddeb7c3dfe0712a6dbd90df3fc77
MD5 4c5ffcdf02d7755ba0f4caafd86edf50
BLAKE2b-256 9791e287538fd689e74a096e0c574d6b16c361b8ca5d8b169deb34ea5d0017e6

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85d081506d79597b7c48a8bf239ada04040b7a9caa580dc62de9708340b1c14e
MD5 b0d14e3aeb98d58aba95303525911777
BLAKE2b-256 959dfd510c7a478cb651a3e4acb8c95fe4bffbe3673d3f51b557e47431cf2936

See more details on using hashes here.

File details

Details for the file itk_labelpointset-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for itk_labelpointset-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d11aa76ac1fca7ce6936d65c411add31b88a301a7f4d3844bb6368aedc640b2c
MD5 d3ad81e2e2a849eb2fddf4bfa383bfd0
BLAKE2b-256 dabe4e0a6ee43ae54b812ce21518e43b7700a53cc448a353f470b2b36169ec3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page