Skip to content

BiAPoL/napari-crop

Repository files navigation

napari-crop

License PyPI Python Version tests codecov DOI

Currently, this repository is not guaranteed to be actively maintained.

If you are interested in further developing it, feel free to fork it.

Crop regions in napari manually

Crop in any dimension

Cut a volume using a plane

Note:

- this functionality currently only works with 3D data

- to drag the plane, hold the 'SHIFT' key from your keyboard

Usage

Create a new shapes layer to annotate the region you would like to crop:

Use the rectangle tool to annotate a region. Start the crop tool from the Tools > Utilities > Crop region menu. Click the Run button to crop the region.

You can also use the Select shapes tool to move the rectangle to a new place and crop another region by clicking on Run.

Hint: You can also use the napari-tabu plugin to send all your cropped images to a new napari window.


This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-crop via pip:

pip install napari-crop

Contributing

Contributions are very welcome.

License

Distributed under the terms of the BSD-3 license, "napari-crop" is free and open source software

Issues

If you encounter any problems, please create a thread on image.sc along with a detailed description and tag @haesleinhuepf.