A pure Python module for visualising 3D segmentation results
Project description
SegView
visualise the 3D segmentation result
Install
- The most convenient way would be:
pip3 install segview - You can also Include the file
segview.pyin your project directory
(SegView only support Python 3.5+, because it requires PyQt5)
Use SegView
segview.render_label(label, metadata, alpha=1) # see the 3D model of labels
segview.annotate_label(image, label, axis=-1) # see the 2D slice with labels along different axes
segview.render_image(image, metadata) # see the 3D render of an image
segview.render_image(image, metadata, feature) # see the 3D image with features
segview.annotate_feature(image, label) # see 2D slice with features
labelis a 3Dnumpyarray- Usually it is the result of image segmentation, having the same structure
- Value
0corresponds to the background - Its shape is
(x, y, z).
featureis a 2Dnumpyarray- Usually it is the result of intensity maxima locating
- It is 3D positions,
[(x1, y1, z1), (x2, y2, z2), ...] - Its shape is
(feature_number, 3)
metadatais a dictionary containing the voxel size- It is only used in 3D visualisation, as many z-stack images have lower resolutions along z-axis
{'voxel_size_x': 1, 'voxel_size_y': 1, 'voxel_size_z': 1}
alphaadjusts the brightness of the result
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
segview-0.3.0.tar.gz
(16.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
segview-0.3.0-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file segview-0.3.0.tar.gz.
File metadata
- Download URL: segview-0.3.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb8b4f9daf3432cc03643d78dc2b815e580cc1e9c5ac2b7462ad948ce513a454
|
|
| MD5 |
05e51d03ae0236506f8ad6c990b3a616
|
|
| BLAKE2b-256 |
75ca782705b609e653282130685eb5775b387b6c4d07054983a3907146ddf0be
|
File details
Details for the file segview-0.3.0-py3-none-any.whl.
File metadata
- Download URL: segview-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d74b6c59e49842f1190b09dcf7f870d64d24b3933394469ab7d528fc0f05487f
|
|
| MD5 |
2a7ca0797bd12115c6d6fafec64934f0
|
|
| BLAKE2b-256 |
bc631d4e2755bea48623fdacdc32383fe49e60a9933e11c27d5ccff8c86f5a6e
|