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.5, 'xmm': 121.73248817021276, 'ymm': 348.78409531914895}, {'zmm': 162.5, 'xmm': 175.7598284255319, 'ymm': 331.00294536170213}, {'zmm': 176.25, 'xmm': 108.73857089361702, 'ymm': 388.4497375319149}, {'zmm': 203.75, 'xmm': 168.92092459574468, 'ymm': 364.5135741276596}]

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.1.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

dcm_ball_detector-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dcm_ball_detector-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 a06f1774990675e69946d0cf08db043b6471cd7412b36fe1f73e6d869b2123db
MD5 073d58fb89c361c57778a2bf395bb971
BLAKE2b-256 721c333b7e76be4ed5eea8e56a03f4835bb593d7d8aadfa1ed50fe2c5aad7ff3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dcm_ball_detector-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4c48da7ed7214f548076381051609c693d62a07c261b0c260004517a6342d2
MD5 f8ebda1d12c2a3eb045efbd6767d6321
BLAKE2b-256 b8bd41d1e821d0a70a54f0628fdb6c8034e1988e7fc789b78a49888a35dcf94c

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