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:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdma-0.0.5.tar.gz.
File metadata
- Download URL: cdma-0.0.5.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64cffa6566dd03ec1a6a406efab6926c4a99160c3716a2e789db8b5357333bf
|
|
| MD5 |
a008392604b810300979e316c9298006
|
|
| BLAKE2b-256 |
80c0d12c5b66c57ef549164a7d932cd28b0228c8fa70ebf09513efd56a440921
|
File details
Details for the file cdma-0.0.5-py3-none-any.whl.
File metadata
- Download URL: cdma-0.0.5-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273351e7b6b32d3ab1e02304c09bcf9f01e8691f1d49e1b0017c1162f371ddd7
|
|
| MD5 |
0d311e4fe527401ca77a0d3c677622ef
|
|
| BLAKE2b-256 |
3afb68945a688acd2371c832428b020b5e85668368c8e1e7f7cf9bbe9f052118
|