Skip to main content

generate-dense-patches

License BSD-3 PyPI Python Version tests codecov napari hub

A simple plugin to create a lot of training data from a 3D volume and mask. For help with this plugin please open an issue, for issues with napari specifically raise an issue here instead.


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

Installation

It's recommended to have installed napari and pyqt through conda.

conda install napari pyqt

Then to install this plugin via pip:

pip install generate-dense-patches

To install latest development version :

pip install git+https://github.com/volume-em/generate-dense-patches.git

Usage

To use this plugin with napari:

  1. Drag and drop an image and/or segmentation mask (tif) into the viewer.
  2. Open "Plugins" Toolbar and select "Generate dense patches" and click "Generate 2D Patches"

This plugin works to create a lot of 2D training data by generating an $n^3$ cube, rotating every $\theta$ slices and saving every (step size) slice of the generated volume.

  1. Make sure the "save directory box", "step size", "rotation theta", and "patch size" is filled in

If no point is placed, then the center of the image will be used as the center of the cube. If a point is placed, then the center of the cube will be the point.

  1. Press run and wait for the patches to be generated.

Contributing

Contributions are very welcome. Tests can be run with tox, 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, "generate-dense-patches" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Release files for generate-dense-patches 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for generate-dense-patches 0.0.2
File Size Uploaded
generate-dense-patches-0.0.2.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for generate-dense-patches 0.0.2
File Interpreter ABI Platform
generate_dense_patches-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size:18.7 kB

Release files / generate-dense-patches-0.0.2.tar.gz

Download URL generate-dense-patches-0.0.2.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
753d0f5273631fc66d620f2390ac2f5eaa3e67c63608bd77becffeec8b433dd4
BLAKE2b-256 checksum
How to use checksums
49a6c6ff8f5bb5b4f96c4adbed870e910ac5be399d79abf726c94bcd8590b707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / generate_dense_patches-0.0.2-py3-none-any.whl

Download URL generate_dense_patches-0.0.2-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
535894542b005ad8a8fa6592f248edd8dd51670f6237cbe5fa6bc0774ca3ab34
BLAKE2b-256 checksum
How to use checksums
f2995f341b81f1a7379e02c1101032cc85dcd2c179feb82c5da8f0e4f280a2db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page