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.6.tar.gz (6.5 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.6-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.6.tar.gz.

File metadata

  • Download URL: ct_leg_bone_split_patch-0.1.6.tar.gz
  • Upload date:
  • Size: 6.5 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.6.tar.gz
Algorithm Hash digest
SHA256 489327fe309f96abf87072975d1e2504c736ae23ce1f9d39f5231b33b8e539d1
MD5 c682cf1a8ff7f98be05362c4b7b4c840
BLAKE2b-256 5f5a49e77687c951c26298a610c098e18120fa5bb53323e953f9ecb6b709246d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ct_leg_bone_split_patch-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5c1568225f69bdca53daf4c7b12a487409cd6fda9cdf1ab9172d38a3cef0e9d5
MD5 1d16d1ed4e39fb959e8d5eda4deadd39
BLAKE2b-256 9caeeb2e8c9f602e56f6ae9500923f9ea06812704405c05db301312be1ee2614

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