Skip to main content

Given a 128×128 grayscale image representing a CT/MRI cross-sectional slice, identify bone tissue from it and generate a binary mask.

Project description

ct_leg_bone_split_patch

Given a 128×128 grayscale image representing a CT/MRI cross-sectional slice, identify bone tissue from it and generate a binary mask.

Installation

pip install ct_leg_bone_split_patch

Usage

processing CT image.

from PIL import Image
from ct_leg_bone_split_patch import map_image

img_in  = Image.open("path/to/file")
img_out = map_image(img_in)

img_out.save("path/to_file")

processing MRI image.

from PIL import Image
from ct_leg_bone_split_patch import map_image

img_in  = Image.open("path/to/file")
img_out = map_image(img_in, mri=True)

img_out.save("path/to_file")

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

ct_leg_bone_split_patch-0.1.5.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

ct_leg_bone_split_patch-0.1.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file ct_leg_bone_split_patch-0.1.5.tar.gz.

File metadata

  • Download URL: ct_leg_bone_split_patch-0.1.5.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.18 Linux/6.16.10-aosc-main

File hashes

Hashes for ct_leg_bone_split_patch-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b991e2983b2def5f35c1b4a700bc44753c978df5a8eecfd19ff19f629c79eff1
MD5 f72cedbb58ab80bf4673c546297bcb69
BLAKE2b-256 1724133e7e29885710d322a3cacdb02ec3a880780bd88da253925faaac060631

See more details on using hashes here.

File details

Details for the file ct_leg_bone_split_patch-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ct_leg_bone_split_patch-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1314fcdcf87055e89f0bf61a053b4d044bc2b7c9e2e36d2a2ba830f8ab524971
MD5 d80bb8bba0a149f6287e7fdf453b4db1
BLAKE2b-256 cc413bb3b4da5d0f7a182a89bf11f47380fccffe94cd498dfbd4f7fa8f22051a

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