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.

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

You know the problem: You just started a remote programming session, logged into the remote interpreter via SSH and your favorite IDE and then you encounter a bug related to 3D volumetric data. (Okay, maybe a little specific, but at least I have encountered this problem before.)

Now, normally, you would have to start a remote desktop session (just try that on the train!), open Napari, Fiji, or Slicer, and inspect the actual image data. Pretty bothersome.

But fear not! The IPyViewer can show your 3D data directly in the Jupyter notebook. It is basically a very specced down version of one of the above programs, but works with a napari-esque API:

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

image_stack = create_fake_stack()

viewer = IPyViewer()
viewer.add_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.4.tar.gz (8.6 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.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdma-0.0.4.tar.gz
  • Upload date:
  • Size: 8.6 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.4.tar.gz
Algorithm Hash digest
SHA256 e83f206df4521a2e1ba3c962cdc4c0f311b39f737638260866414c83d51bbc02
MD5 54f5aa7580ee9a7dffaba48b5a3f4132
BLAKE2b-256 6ea0e9aa40ece5ce6c61d59039a057343340442d86b2924368d7e62a133e72b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdma-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e98254aefae4518e771db4bbc6841966f1bda99e965dcb3b66f50f67d139a8
MD5 b4a7f1314bc1448aae45887c6d0ec567
BLAKE2b-256 db2af4e135f8a6b46fdd1dbd1b4b234073e9ffc03ce197b78872621c2e20ef8e

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