napari-mat-images
Features
This plugin loads image variables stored in MATLAB .mat files into napari.
It loads any variable that looks like an image.
Presently, that includes any array with more than two dimensions with size greater than 20 pixels (determined by shape_is_image()).
If loading a variable with 3 or more dimensions, the plugin assumes that it is a stack of images, and the dimension with greatest size is the axis of the stack.
Loading Large Files
If loading a large .mat file saved in HDF5/v7.3 format, chunks of the images are loaded as needed, resulting in fast initial load, but potentially slower scrolling.
Slices of the image stacks are randomly sampled to determine min/max contrast values.
Requirements
This plugin relies on scipy to load small .mat files and h5py (with dask) to load larger HDF5/v7.3 .mat files.
It implicitly requires napari for use.
Installation
napari-mat-images requires napari to be installed, although it is not listed as a requirement for installation.
This plugin relies on plugin functionality found in napari version > 0.2.12. This can be installed via pip from PyPI:
$ pip install napari>0.2.12
You can install napari-mat-images via pip from PyPI:
$ pip install napari-mat-images
Usage
Once installed, the plugin will be used whenever trying to load a .mat file.
This can be done from the napari GUI or commandline:
$ napari my_file.mat
Contributing
Contributions are very welcome. Tests can be run with pytest, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the BSD-3 license, napari-mat-images is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
This napari plugin was generated with Cookiecutter along with napari's cookiecutter-napari-plugin template.
Metadata
Release files for napari-mat-images 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| napari-mat-images-0.1.3.tar.gz | 7.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| napari_mat_images-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / napari-mat-images-0.1.3.tar.gz
| Download URL | napari-mat-images-0.1.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbe88936aeb0dd5341b5488f0e880bced4a74c8a945745ccc0ea351d252bffa8
|
|
BLAKE2b-256 checksum How to use checksums |
312b1e908668d2382f1cc84ca7a853d86f8fdbcf157d20898074cdb29ed107c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.10
|
Release files / napari_mat_images-0.1.3-py3-none-any.whl
| Download URL | napari_mat_images-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
629fbacf48c7655a66d0fdd82f2e72bac3026a5e423b13a69c1aa0f05eba682d
|
|
BLAKE2b-256 checksum How to use checksums |
1a407384b7ae65ad27165ef5263fa07ee2f9729e00c54d051120f44635f58245
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.10
|
Security for napari-mat-images 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.