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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

segview-0.3.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

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

Hashes for segview-0.3.0.tar.gz
Algorithm Hash digest
SHA256 eb8b4f9daf3432cc03643d78dc2b815e580cc1e9c5ac2b7462ad948ce513a454
MD5 05e51d03ae0236506f8ad6c990b3a616
BLAKE2b-256 75ca782705b609e653282130685eb5775b387b6c4d07054983a3907146ddf0be

See more details on using hashes here.

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

Hashes for segview-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d74b6c59e49842f1190b09dcf7f870d64d24b3933394469ab7d528fc0f05487f
MD5 2a7ca0797bd12115c6d6fafec64934f0
BLAKE2b-256 bc631d4e2755bea48623fdacdc32383fe49e60a9933e11c27d5ccff8c86f5a6e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page