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

Uploaded Source

Built Distribution

dcm_ball_detector-0.0.6-py3-none-any.whl (8.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dcm_ball_detector-0.0.6.tar.gz
  • Upload date:
  • Size: 4.0 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.6.tar.gz
Algorithm Hash digest
SHA256 6f4c3e659a46d87d9612e1772293d43aa6d317699ed834e53631f1dc77e0e301
MD5 50c4c3d53d583c961a201fb7656eab05
BLAKE2b-256 fd32ac9d09c133a5576d161e6fa31ed9981b4f4112f3a9485205d9a847a03356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dcm_ball_detector-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 97904f279c593a0dc2c4280b3519524bc11fccbd34ec16d63e7c67326c016353
MD5 19007d0cce1fd6e68d494df9ac9b5264
BLAKE2b-256 508aee25393859fdc98fbd3778b09154f2bedab74a57d7674ac72dcbb1abab41

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