Skip to main content

given a .dcm format image sequence, identify the positions of all spherical markers from this image sequence.

Project description

dcm_ball_detector

given a .dcm format image sequence, identify the positions of all spherical markers from this image sequence.

install

  • it is recommended that this module should be installed in a python virtual environment (venv).
pip install dcm-ball-detector

usage

  • we assume that you have put your .dcm files into a folder of which the path is <folder path>.

  • we assume that your .dcm files are named under alphabetical order.

  • use the following command to get a prediction of the position of the marker balls.

python3 -m dcm_ball_detector <folder path>
  • the program will output something like below to stdout:
[{"zmm": 132.5840302807579, "xmm": 121.99777985982264, "ymm": 349.02488432862555}, {"zmm": 161.7956332082969, "xmm": 175.8402398543241, "ymm": 331.0029681581956}, {"zmm": 176.0079302709168, "xmm": 108.66976835102449, "ymm": 388.61439982471455}, {"zmm": 201.8262056427377, "xmm": 169.0084087325416, "ymm": 364.3212735729133}]

debug

  • if you want to show the debug info of the marker balls, use the following command:
python3 -m dcm_ball_detector --debug <folder path>
  • after the program has been finished, in stderr there will be a line like:
   tips: relevant images in: .../dcm_ball_detector/log_image
  • relevant images for debugging will be listed in folder .../dcm_ball_detector/log_image.

Project details


Download files

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

Source Distribution

dcm_ball_detector-0.0.7.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

dcm_ball_detector-0.0.7-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

Details for the file dcm_ball_detector-0.0.7.tar.gz.

File metadata

  • Download URL: dcm_ball_detector-0.0.7.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for dcm_ball_detector-0.0.7.tar.gz
Algorithm Hash digest
SHA256 33add927e0d67c977f128c91c5396761addac4c9c6f66a41c3ca565a2c391d68
MD5 09d6c5e4ba962e3ec7a4cc9f2498f6b7
BLAKE2b-256 aee1257410668be1fed1b9b7a6f8ff26a23773c70f8edd04054ae34c40a1cb6c

See more details on using hashes here.

File details

Details for the file dcm_ball_detector-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for dcm_ball_detector-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e6abf95c2db76e02987d8f4cbcd7abdd492137333e9bf753cf9e89728c2f4db9
MD5 69135a4129c8a0c8ccd496f9a973aba1
BLAKE2b-256 ed9f080d5bda551ff0e2c93db74b2e47d4d613839dc67f6308ac416927fb1eea

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