Skip to main content

A collection of utilities related to processing 3D volumetric data and the CDMA group of Rostock University.

Project description

CDMA Utilities

A collection of utilities related to processing 3D volumetric data and the [CDMA group of Rostock University] (https://www.cdma.uni-rostock.de/).

Styling

CDMA Color Maps

cdma_cmaps can be used to create sequential or diverging color maps based on the colors of the CDMA logo. These palettes can either be continuous (as_cmap=True) or discrete (as_cmap=False). The color maps can be reversed by setting the reverse argument to True. The color maps can be used in matplotlib by passing them to the cmap argument.

Sequential

The sequential color maps are either orange or blue. They either fade to white or black, depending on the kind argument. The color maps can also be reversed. Some examples are shown below:

blue to white

Diverging

The diverging color maps can either start at orange or blue and end at the opposite color. The starting and end color are not the CDMA colors. The diverging color maps can also be reversed. Some examples are shown below:

Napari Themes

These are two CDMA-themed napari themes. One is more for demonstration purposes, the other can also be used in a normal setting.

Display

IPyViewer

This is a very simple orthogonal stack viewer for 3D numpy arrays, to be used in jupyter notebooks. The interface is similar to napari:

from cdma.display import IPyViewer
from cdma.mock_data.volumes import create_fake_stack

image_stack = create_fake_stack()

viewer = IPyViewer()
viewer.add_image(image_stack)
# viewer.add_mask(some_mask) # optionally add a mask that is blended over the image
viewer.show()

You will be able to scroll through 2D slices along a given axis. Also, the current slice intersection is shown:

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

cdma-0.0.6.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

cdma-0.0.6-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file cdma-0.0.6.tar.gz.

File metadata

  • Download URL: cdma-0.0.6.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for cdma-0.0.6.tar.gz
Algorithm Hash digest
SHA256 cf9b99974ac0f4340d840a527120c1fabc65dc8d685734836a048887e13f4e8d
MD5 2165f1a82b3b701f693999fb1305ea09
BLAKE2b-256 0422b0943cae0bb335d2d0dc734d4df36d5900a22467af91df1dc9e85755f539

See more details on using hashes here.

File details

Details for the file cdma-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: cdma-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for cdma-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6c51aeb0e7125a510b3b9923bd04f900bbd391daf27db7d9667ba855601c672a
MD5 9a75b00f786defa2b63891ed2c709bd1
BLAKE2b-256 3b6dadbeb5149876dc2fbc4a0520ff21280f2635ce864d6414cb44fa0151a9d8

See more details on using hashes here.

Supported by

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