Skip to main content

SegView

visualise the 3D segmentation result

Install

  • The most convenient way would be: pip3 install segview
  • You can also Include the file segview.py in 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
  • label is a 3D numpy array
    • Usually it is the result of image segmentation, having the same structure
    • Value 0 corresponds to the background
    • Its shape is (x, y, z).
  • feature is a 2D numpy array
    • 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)
  • metadata is 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}
  • alpha adjusts 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)

Source distribution for segview 0.3.0
File Size Uploaded
segview-0.3.0.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for segview 0.3.0
File Interpreter ABI Platform
segview-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page