Prepare bedside medical images for machine learning and image interpretation.
Project description
dicomcrop
dicomcrop is a project used for cropping digital images. It allows for users to select a rectangular area of the image and crop it out, allowing them to resize and adjust the image as needed.
The project has the following features:
- Selecting an area of an image to crop
- Adjusting the size of the cropped area
- Resizing the cropped image
- Saving the cropped image in various formats
Prepare bedside medical images for machine learning and image interpretation. dicomcropper isolates the dynamic component of an image and strips away the rest.
Installation
Requires python 3.7 or higher
Install with pip: pip3 install dicomcrop --upgrade
crop
Automatically crop away static borders as much as you need
dicomcrop --dir <dir>
Automatically crop away static borders in a single file
dicomcrop --image <image>
Generates cropped images encrypting private informations
dicomcrop --dir <dir> --encrypted
It's possible to disable the encrypted feature
dicomcrop --dir <dir> --encrypted=False
There is an easter egg to fetch informations from a spreadsheet file:
dicomcrop --dir <dir> --encrypted --egg=True
all these extra commands can be applied following the --image
command
edges
Extracts the edges around an medical image
Returns the distance in pixels in the form: left,right,top,bottom
dicomcrop --edges example.DCM
> (293, 17, 969, 696)
secrets
Returns a secret string from the library:
dicomcrop --secret
> e06dda30-5312-4623-936e-20b669c10495
tokens
Generate a hash string:
dicomcrop --token
> e06dda30-5312-4623-936e-20b669c10495
Generate a encrypted hash scring:
dicomcrop --token --encrypted
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRpZW50X2lkIjoiZDQxMmY4MmUtY2U5Ni00MTg4LWEwZTktNWFmMTIzYTlkMDZlIn0._xhyeXCoaboKH8rqvzKCWa6Zg7ne9bjSHn58c91aLCc
summary
Command | Input | Output |
---|---|---|
crop |
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
Built Distribution
File details
Details for the file dicomcrop-0.6.tar.gz
.
File metadata
- Download URL: dicomcrop-0.6.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 058a765eedc266cf2328ae8190caf37292c3495b6fdc5390400b830ee46ec472 |
|
MD5 | 612e45285641c0071b38096c64119dc7 |
|
BLAKE2b-256 | 3878bd81a3c31940ee8490867f06f0d02058c895d788db3247e40d08f15ae2e8 |
File details
Details for the file dicomcrop-0.6-py3-none-any.whl
.
File metadata
- Download URL: dicomcrop-0.6-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b04f30ca99e10169ba0c17fcdc3114a8bf6c275aa3472dbb939585f84c1adb |
|
MD5 | 829d1854dd6057a81d7be138381ea86a |
|
BLAKE2b-256 | 45f5a1e883337237e63f08832e5e572381740a310c19478f1c65ef11633b939a |