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

itk_labelpointset-0.2.0-cp311-abi3-win_amd64.whl (685.3 kB view details)

Uploaded CPython 3.11+ Windows x86-64

itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl (2.5 MB view details)

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

itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.11+ manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_17_x86_64.whl (1.0 MB view details)

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

itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

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

itk_labelpointset-0.2.0-cp311-abi3-macosx_11_0_arm64.whl (745.2 kB view details)

Uploaded CPython 3.11+ macOS 11.0+ ARM64

itk_labelpointset-0.2.0-cp311-abi3-macosx_10_9_x86_64.whl (845.7 kB view details)

Uploaded CPython 3.11+ macOS 10.9+ x86-64

itk_labelpointset-0.2.0-cp310-cp310-win_amd64.whl (679.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_17_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (737.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

itk_labelpointset-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl (849.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

itk_labelpointset-0.2.0-cp39-cp39-win_amd64.whl (679.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_17_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.2.0-cp39-cp39-macosx_11_0_arm64.whl (737.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

itk_labelpointset-0.2.0-cp39-cp39-macosx_10_9_x86_64.whl (849.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

itk_labelpointset-0.2.0-cp38-cp38-win_amd64.whl (706.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ ARM64

itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_17_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

itk_labelpointset-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl (849.7 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e2d9813661bd1340dc9f8c57d368ae630bba4540dd2b93097ee3e5e60f94856f
MD5 0381d21d946f11041de53cf653dca336
BLAKE2b-256 196cb797bcc2ac664c6f20b37c53bafab5fb61a2d13a23cd715e72049746ece9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 085a78ab022113ed2d9b28505ac64dc97c6e4f0e833966b36aecb8e0b7070246
MD5 b02565e1877c1ca70e47e8615ab4431f
BLAKE2b-256 555d1b91368d606cac90e4b78ebb60eba4acd20e7b9af546c4e80ddc8e72b537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a12a768f894a30e71c0710bd380d8a497ad667cf65fbc1d3b924ed7cfc668e89
MD5 091667c3f0068139dcb832f9c1a1a9e8
BLAKE2b-256 0a9c304dca95ede763711d01793a03cbc76bd8b0082d414ade15521dc3b3e846

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 35db23e8008d99ea77ecf1c75dd9f79584b176cf690b7ed865ddacaca66bbc54
MD5 6e8cd0d09b8716b87f3777541a3dc688
BLAKE2b-256 b11bd52a59ce391f4ac435c7897383e8dbcb68fc9f0945dc3c4d7ebcf58abecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5eebd865311e5093e74ff16249182288e8a25a5445a2d95767a98bb5171addb9
MD5 6991529516673ddbfbf6ec02581dc2a3
BLAKE2b-256 fb8673bdeaed7c60c73a608992aad0924dbde8b98b3556c96c493236d0b492ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c518facdcb3f8d74c5232fad36b205bc1e5b73da6fc982e3a265719e4dcf66b2
MD5 70691b36904f19296f6fc1b0d006abf2
BLAKE2b-256 c6a2c0b914069d4d0762480dfa4d86f7adb320a5cf48272ac4e78787f8d8949b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp311-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 34148889a71de789ba36a699ea8bd408778614d24b713111f08381b6bed30dbe
MD5 bf5213e101d2f659c5492d689b400fc5
BLAKE2b-256 de5e916f7408c7e1c7b2f449624feed12a7bd347f13f7344d5902ec9496cab2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 27b6761299082e09dc5f74e9a5fa32f1c4e9ad5c5c3a3dd037e72d85cf5ffd34
MD5 c93c799786cdebea2e2eaeace3103590
BLAKE2b-256 e48e2462d7175a66c6097d9e9fbde1488700d16435f190c8d56c39b9638f2fdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c1b9d0a4f7e096c21de5a7f110b8b1715d794ddbf6a3607b47aa631d8960f841
MD5 138fb220411ac736f8cf87b7ee128590
BLAKE2b-256 af7ed0d9d95a6fdcf79422a9cc3eac1ff503d2196af1e0ad7c17bfebc39d2441

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d7e007c0a14e263fff572b7817e13733c8799fc41d843f8c893233d9f8f01789
MD5 807c3da73c88269162fd7e18907ebcc0
BLAKE2b-256 1bf8ccd2784b8079b166951e5bf54363dbbe83eb627ef9cd2c2fd61d277a60c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ab5380e4471947954f7e60b786e54bf51c9b6ab8636a8fb48943e8ce87a33ef8
MD5 1711ab3bcae2410a5b6cda4e194f5ab5
BLAKE2b-256 7db8f5c4a687315b16d6c5b9a85ccc428a0684bbbe0528f600b92dfdb35fe4f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 812014b5c2dcde4a7a9768f248ecc9c0ee2e6f41b538a2e3f982105d3e032e79
MD5 fbdb92d3fd9d6ee630959cacd139c114
BLAKE2b-256 1cb321542c8ad7f150dedf5a1ce9b1e274ec2b976beb63f20e467f555a6fed3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7769caa0435570c5075f3b882b3f3cecf264cbd894a13e4305843e2eb089830e
MD5 bd94e1eca26d5e8b3a928efb6030e726
BLAKE2b-256 4a0ed8c791938ba1adb17bae583df856d3612bfa2d14dd2657180857e13736f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3ad3387c52f4ff7dc1599815f87634ad6d06530cd23b0cf41b10222477367b2d
MD5 1a6dac506201cd3413811e16c4dab74b
BLAKE2b-256 ef6efe2885a6320f0b00f1118326108b11bb46af71e2cebdc602c54e967eab7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a85ee8ce52cc069a08a5b16f3fac2fdfab8e9e25919e289a51c4b0455cfe1473
MD5 5f555c0bba3ab1d10cb4bf5dcf4b044f
BLAKE2b-256 16e069dc874ffa21683eece32a5a780795c4d554e3c23da08d9135b78bbc2383

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dbd5693985a2eaf99b9bb546eed5e0f0fef02e05d202a67d642f206814cf916b
MD5 0c3d08c5237b12d7bc141467cf040dd7
BLAKE2b-256 40cadc9e164a60c43a152db0143ad01eaf143ed7e4814d66abff235121bd5856

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e78115338ca47bef99a119ff9a286ee0c1ed9a6edb89f8640ba850fae464439a
MD5 4a986e949c0b175c664a027a25bcbe27
BLAKE2b-256 5cbb85b5e70832069fa9b1a35945d5ef6ff55c4ab0fee20893c31b5a975730a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e7efc82c67e2e404250d676051077516a7d5f4cff48073dbc4699652ea60dae0
MD5 8d6e82858fd2e9debfd4bf4cf8a06178
BLAKE2b-256 66635f16b3a83ce8fa968bba7805d3e98ab138a2df854861d0ca4c94a5540d00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ade2d10d079b920ca070b1bcf55e532c9be0bf197273117d39f3097a38241c80
MD5 7793b05a9937ea210ff076267602f475
BLAKE2b-256 1c6c0a27cd8996de57a59faa7f0ce9a2542e2e66bfdaf7847e722daa1f1378e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf1d4948b4f2400e4373a7a83096728eebdd1e160c48a5519c23f99c4abc75f6
MD5 ce31f000721e138ebabc2245e41fdebe
BLAKE2b-256 efed0d8dbed1d7d59003f3bef8d08a78d41d942aa22036e01c19ce0306443d0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 943dd77a855847913f8f99c544480a00c308b9bcc3dd5a1b97e85487e15838c9
MD5 a0935a2a269eada720c48a2fdc9259a6
BLAKE2b-256 d3c9599fe1da7fc24f34036c9b3a32b9c93e6019b042a1b276303b6896f00579

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21a6e06eac4cc67991b691e37405e01b5659722693a37981b55094b48d8041ac
MD5 ce3f9a6dbc7b48365e9b3654f9b358d2
BLAKE2b-256 cbf7c32a7a80cbe82b8712a7e5beee731ca59f9cf2933d488f0f122fe2464ffc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4ec094a419a93f10ae972214918911a306d2423f4d8afd7f33573fe59c25c14
MD5 2425c3cd6ac7e035c858cfaa6bb60b07
BLAKE2b-256 9e101ee6800c9afe6bc08c67dfe8b5b3bed45b231b1facf18d3ac6914cd58108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 70a1654becea2a62a5fe3eea9ac174e5e35feda0679a8a298bc04389c0b099d4
MD5 3add7a84149d98cb34997933676fa634
BLAKE2b-256 f8097119c480830ad0ad1d91a8a6ff15ace3dd8ca574212fbe51f135db25bdfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4094ffa4f28f4c76ea0cbbeef31e06804f386e88b7a920ba338455ff210af07d
MD5 c626e1eddc3d367ac43b1e9e8152d1f0
BLAKE2b-256 ae48796ed009dd1ff7bc5628112fad296575a0caac630996d4dde21852cfc55d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0aeee301bc14e7c8f1e8cbf7d7c6b5be97a0a496181d424f6da084cefabb0692
MD5 f79897c616f50b3f0e161bc7d120f5ec
BLAKE2b-256 a5df017eef81254f66340f9f6df7277f5ac8caedb91cd8877b1a633c974c7ab4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for itk_labelpointset-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad7ad67a366e4a8553e33e15f27acf03a7785ef838e72aabb84817a984921740
MD5 0d2c6e26df2ac85149ecead659d19436
BLAKE2b-256 c1cf249d3a511cf62fe4023a16097a95225f4efe7017c415aba85b88545128c4

See more details on using hashes here.

Supported by

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