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
Metadata
Release files for segview 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| segview-0.3.0.tar.gz | 16.6 kB | Without provenance | Details for segview-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| segview-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for segview-0.3.0-py3-none-any.whl |
Total release size: 33.2 kB
Release files / segview-0.3.0.tar.gz
| Download URL | segview-0.3.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb8b4f9daf3432cc03643d78dc2b815e580cc1e9c5ac2b7462ad948ce513a454
|
|
BLAKE2b-256 checksum How to use checksums |
75ca782705b609e653282130685eb5775b387b6c4d07054983a3907146ddf0be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / segview-0.3.0-py3-none-any.whl
| Download URL | segview-0.3.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d74b6c59e49842f1190b09dcf7f870d64d24b3933394469ab7d528fc0f05487f
|
|
BLAKE2b-256 checksum How to use checksums |
bc631d4e2755bea48623fdacdc32383fe49e60a9933e11c27d5ccff8c86f5a6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for segview 0.3.0
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.