jxImgTools
A simple toolbox for processing and visualizing medical images.
Functions
Visualization
VolSlice
A tool to visualize 3D volume and segmentations in the same time.
# Create fake data
import numpy as np
import matplotlib.pyplot as plt
vol = np.zeros((50, 128, 128))
vol[20:30, 40:88, 40:88] = 1
vol += 0.1*np.random.rand(*vol.shape)
# plt.imshow(vol[25,:,:], cmap='gray')
seg1 = np.zeros((50, 128, 128))
seg1[20:30, 40:88, 40:88] = 1
seg2 = np.zeros((50, 128, 128))
seg2[20:29, 45:95, 45:95] = 1
seg2[29, 40:88, 40:88] = 1
fig, axs = plt.subplots(1,3)
axs[0].imshow(np.squeeze(vol[25,:,:]), cmap='gray')
axs[1].imshow(np.squeeze(seg1[25,:,:]), cmap='gray')
axs[2].imshow(np.squeeze(seg2[25,:,:]), cmap='gray')
# Visualize using VolSlicer
from jximgtools.metric import dicePerSlice, dice
from jximgtools.visualization.volSlicer import VolSlicer
dicee = dice(seg1, seg2)
dices = dicePerSlice(seg1, seg2)
volInfo = {'Name': 'Test Volume', 'DicePerSlice': dices}
slicesInfo = [{'Dice': dices[sliceIdx]} for sliceIdx in range(50)]
VolSlicer(vol, volInfo = volInfo, segs = [seg1, seg2], slicesInfo = slicesInfo)
Installation
pip install jximgtools
Metadata
Release files for jrImgTools 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jrImgTools-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for jrImgTools-0.3.3-py3-none-any.whl |
Release files / jrImgTools-0.3.3-py3-none-any.whl
| Download URL | jrImgTools-0.3.3-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38bf224302bf1ae3ed7d5881a5a55c326dd161393993bffa2bd0203d4fd75865
|
|
BLAKE2b-256 checksum How to use checksums |
d79e14b9e4a54ff453e5245a14178714158a0417642491e0236b558cf739343e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7
|
Security for jrImgTools 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.