Package: napari-ndev
napari-ndevA collection of widgets intended to serve any person seeking to process microscopy images from start to finish. The wide breadth of this plugin's scope is only made possible by the amazing libraries and plugins from the napari community, especially Robert Haase. Currently, the plugin supports the following goals:Image-utilities:Allows opening image files (using aics-imageio) and displaying in napari. Also reads metadata and allows customization prior to saving images and labels layers. Allows concatenation of image files and image layers for saving new images. Speeds up annotation by saving corresponding images and labels in designated folders. Also allows saving of shapes layers as labels in case shapes are being used as a region of interest.Batch-workflow:Batch pre-processing/processing images usingnapari-workflows.Batch-APOC:Utilizes the excellent accelerated-pixel-and-object-classification (apoc) in a similar fashion tonapari-apoc, but intended for batch training and prediction with a napari widget instead of scripting.Rescale-by:Rescale any napari layer (image, label, shape) by a set amount, which can be inherited from a different image layer's metadata.Thisnapariplugin was generated withCookiecutterusing@napari'scookiecutter-napari-plugintemplate.InstallationYou can installnapari-ndevviapip:pip install napari-ndevFurther Info1. Image UtilitiesA quick and easy way to save annotations (a napari labels layer) and corresponding images to corresponding folders.Requiresthat images are opened withnapari-aicsimageio--which can be as simple as drag and drop opening by setting the appropriate default reader for each file type in Preferences -> Plugins--in order to utilize the metadata present for saving the image-label pairs. (See Note about AICSImageIO)Quick uniform adjustments to a folder of images, saving the output. Currently supports selecting channels, slicing Z, cropping/downsampling in XY, and doing a max projection of the sliced/cropped image data. To be added: alternative projection types, slicing in T, and compatability with non TCZYX images (but this is not a priority sinceaicsimageiocurrently always extracts images as TCZYX even if a dim is only length 1.2. Batch-workflowBatch pre-processing/processing images usingnapari-workflows.  Images are processed outside the napari-viewer usingaicsimageioas both reader and writer. Prior to passing the images to napari-workflows, the user selects the correct images as the roots (inputs) and thus napari-workflows matches the processing to create the outputs. The advantage of using napari-workflows for batch processing is that it provides an incredibly flexible processing interface without writing a novel widget for small changes to processing steps like specific filters, segmentation, or measurements. Currently only intended for use with images as inputs and images as outputs from napari-workflows, though there is future potential to have other outputs possible, such as .csv measurement arrays.3. Batch-training/predictionUtilizes the excellent accelerated-pixel-and-object-classification (apoc) in a similar fashion tonapari-apoc, but intended for batch training and prediction with a napari widget instead of scripting. Recognizes pre established feature set, and custom feature sets (a string of filters and radii) can be genereated with a corresponding widget.A Note about AICSImageIOAICSImageIOis a convenient, multi-format file reader which also has the complimentarynapari-aicsimageioreader plugin. By default, napari-aicsimageio installs all reader dependencies. Because napari-aicsimageio is not technically required for this plugin to work (you could build your own metadata for the annotation-saver) and just napari-aicsimage is required, the former is not an install requirement. This is to avoid using the GPL liscence and to stick with BSD-3. However, you should install napari-aicsimageio if you want the smoothest operation of the annotation-saver.ContributingContributions are very welcome. Tests can be run withtox, please ensure
the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theBSD-3license,
"napari-ndev" is free and open source softwareIssuesIf you encounter any problems, please [file an issue] along with a detailed description.