GPU-accelerated image processing using cupy and CUDA

Overview

napari-cupy-image-processing

License PyPI Python Version tests codecov

GPU-accelerated image processing using cupy and CUDA

img.png


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

Installation

Follow the instructions for installing cupy on your computer first. Afterwards, you can install napari-cupy-image-processing via pip:

pip install napari-cupy-image-processing

A more detailed example for installation (change 10.2 to your CUDA version):

conda create --name cupy_p38 python=3.8
conda activate cupy_p38
conda install -c conda-forge cupy cudatoolkit=10.2
conda install napari
pip install napari-cupy-image-processing

Known issues

When executing the first operation right after CUDA installation, napari may freeze and crash. Wait a minute and try again.

Contributing

Contributions are very welcome. Adding cupy ndimage functions is quite easy as you can see in the implementation of the current operations. If you need another function in napari, just send a PR. 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 MIT license, "napari-cupy-image-processing" is free and open source software

Issues

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

You might also like...
A small Python module for BMP image processing.

micropython-microbmp A small Python module for BMP image processing. It supports BMP image of 1/2/4/8/24-bit colour depth. Loading supports compressio

Image Processing HighPass Filter With Python
Image Processing HighPass Filter With Python

Image_Processing_HighPassFilter High Pass Filter take the high frequency and ignore the low frequency High Pass Filter can be use to sharpening an ima

Using P5.js, Processing and Python to create generative art
Using P5.js, Processing and Python to create generative art

Experiments in Generative Art Using Python, Processing, and P5.js Quick Links Daily Sketches March 2021. | Gallery | Repo | Done using P5.js Genuary 2

Simple Python package to convert an image into a quantized image using a customizable palette
Simple Python package to convert an image into a quantized image using a customizable palette

Simple Python package to convert an image into a quantized image using a customizable palette. Resulting image can be displayed by ePaper displays such as Waveshare displays.

Seaborn-image is a Python image visualization library based on matplotlib and provides a high-level API to draw attractive and informative images quickly and effectively.
Seaborn-image is a Python image visualization library based on matplotlib and provides a high-level API to draw attractive and informative images quickly and effectively.

seaborn-image: image data visualization Description Seaborn-image is a Python image visualization library based on matplotlib and provides a high-leve

kikuchipy is an open-source Python library for processing and analysis of electron backscatter diffraction (EBSD) patterns
kikuchipy is an open-source Python library for processing and analysis of electron backscatter diffraction (EBSD) patterns

kikuchipy is an open-source Python library for processing and analysis of electron backscatter diffraction (EBSD) patterns. The library builds on the

An executor that performs standard pre-processing and normalization on images.

An executor that performs standard pre-processing and normalization on images.

Pixel Brush Processing Unit
Pixel Brush Processing Unit

Pixel Brush Processing Unit The Pixel Brush Processing Unit (PBPU for short) is a simple 4-Bit CPU I designed in Logisim while I was still in school a

Easily turn large sets of image urls to an image dataset. Can download, resize and package 100M urls in 20h on one machine.
Easily turn large sets of image urls to an image dataset. Can download, resize and package 100M urls in 20h on one machine.

img2dataset Easily turn large sets of image urls to an image dataset. Can download, resize and package 100M urls in 20h on one machine. Also supports

Releases(0.3.1)
  • 0.3.1(Aug 27, 2022)

  • 0.3.0(Jul 10, 2022)

    New features

    • Added docstrings to enable searching in them via the napari-assistant

    Backwards compatibility breaking changes:

    • The unused viewer parameter of all functions was removed.

    Deprecated methods:

    • The measurement() function has been deprecated because it was too slow and it will be removed with the next major release. Consider using napari-skimage-regionprops or napari-simpleitk-image-processing instead.
    Source code(tar.gz)
    Source code(zip)
  • 0.2.3(May 8, 2022)

    Deprecated functions

    • napari_cupy_image_processing.measurement() has been deprecated. Use napari_simpleitk_image_processing.label_statistics() instead.
    Source code(tar.gz)
    Source code(zip)
  • 0.2.2(Mar 20, 2022)

  • 0.2.1(Mar 20, 2022)

  • 0.2.0(Mar 8, 2022)

    Bugfix:

    • measurements() was not easily callable from the API (Thanks to Edwin Hernandez G for reporting!)

    Backwards compatibility breaking changes:

    • measurements() now takes images (numpy arrays) as parameters, and no longer napari layers.
    Source code(tar.gz)
    Source code(zip)
  • 0.1.9(Jan 1, 2022)

  • 0.1.8(Dec 12, 2021)

  • 0.1.7(Dec 4, 2021)

    Backwards compatibible changes

    • Changed menu entries to cover finer differentiation between various filtering and segmentation techniquese
    Source code(tar.gz)
    Source code(zip)
  • 0.1.6(Nov 28, 2021)

  • 0.1.5(Nov 12, 2021)

  • 0.1.4(Nov 9, 2021)

  • 0.1.2(Oct 28, 2021)

  • 0.1.1(Oct 22, 2021)

  • 0.1.0(Oct 22, 2021)

    New functions

    • gaussian_filter
    • gaussian_laplace
    • median_filter
    • percentile_filter
    • white_tophat
    • morphological_gradient
    • morphological_laplace
    • wiener
    • threshold_otsu
    • binary_fill_holes
    • label
    Source code(tar.gz)
    Source code(zip)
Owner
Robert Haase
Computational Microscopist, BioImage Analyst, Code Jockey
Robert Haase
impy is an all-in-one image analysis library, equipped with parallel processing, GPU support, GUI based tools and so on.

impy is All You Need in Image Analysis impy is an all-in-one image analysis library, equipped with parallel processing, GPU support, GUI based tools a

null 24 Dec 20, 2022
Blue noise image stippling in Processing (requires GPU)

Blue noise image stippling in Processing (requires GPU)

Mike Wong 141 Oct 9, 2022
Anaglyph 3D Converter - A python script that adds a 3D anaglyph style effect to an image using the Pillow image processing package.

Anaglyph 3D Converter - A python script that adds a 3D anaglyph style effect to an image using the Pillow image processing package.

Kizdude 2 Jan 22, 2022
PIX is an image processing library in JAX, for JAX.

PIX PIX is an image processing library in JAX, for JAX. Overview JAX is a library resulting from the union of Autograd and XLA for high-performance ma

DeepMind 294 Jan 8, 2023
A Python package implementing various HDRI / Radiance image processing algorithms.

Colour - HDRI A Python package implementing various HDRI / Radiance image processing algorithms. It is open source and freely available under the New

colour-science 111 Dec 6, 2022
starfish is a Python library for processing images of image-based spatial transcriptomics.

starfish: scalable pipelines for image-based transcriptomics starfish is a Python library for processing images of image-based spatial transcriptomics

null 199 Dec 8, 2022
image-processing exercises.

image_processing Assignment 21 Checkered Board Create a chess table using numpy and opencv. view: Color Correction Reverse black and white colors with

Benyamin Zojaji 25 Dec 15, 2022
Simple Python image processing & automatization project for a simple web based game

What is this? Simple Python image processing & automatization project for a simple web based game Made using only Github Copilot (except the color and

SGeri 2 Aug 15, 2022
Image Processing - Make noise images clean

影像處理-影像降躁化(去躁化) (Image Processing - Make Noise Images Clean) 得力於電腦效能的大幅提升以及GPU的平行運算架構,讓我們能夠更快速且有效地訓練AI,並將AI技術應用於不同領域。本篇將帶給大家的是 「將深度學習應用於影像處理中的影像降躁化 」,

null 2 Aug 4, 2022
Napari simpleitk image processing

napari-simpleitk-image-processing (n-SimpleITK) Process images using SimpleITK in napari Usage Filters of this napari plugin can be found in the Tools

Robert Haase 11 Dec 19, 2022