Skip to main content

Python bindings for DIPlib, the quantitative image analysis library

Project description

Python bindings to DIPlib 3 (a.k.a. PyDIP)

Introduction

The purpose of the DIPlib project is to provide a one-stop library and development environment for quantitative image analysis, be it applied to microscopy, radiology, astronomy, or anything in between.

As opposed to all other image processing/analysis libraries and packages out there, DIPlib focuses on quantification. The first priority is precision, all other principles have a lower priority. Our principles are:

  1. Precision:

    We implement the most precise known methods, and output often defaults to floating-point samples. The purpose of these algorithms is quantification, not approximation.

  2. Ease of use

    Although our Python bindings are not much more than a thin wrapper of the C++ library functionality, the image analysis functionality is always easy to use. For example, the user does not, in general, need to be aware of the data type of the image to use these algorithms effectively.

  3. Efficiency

    We implement the most efficient known algorithms, as long as they don't compromise precision. Ease-of-use features might also incur a slight overhead in execution times. The library can be used in high-throughput quantitative analysis pipelines, but is not designed for real-time video processing.

Besides an extensive collection of image processing and analysis algorithms, this package contains DIPviewer, an interactive multi-dimensional image viewer, and DIPjavaio, an interface to the OME Bio-Formats library. The package is compatible with NumPy and any image processing package that uses a NumPy-compatible way of representing images.

See the DIPlib website for more information.

Note! We consider the Python bindings (PyDIP) to be in development. We aim at not making breaking changes, but will sometimes do so when we feel it significantly improves the usability of the module. These changes will always be highlighted in the change logs and the release notification on the DIPlib website. We recommend that you pin your project to use a specific version of the package on PyPI, and carefully read the change logs before upgrading.

Installation

To install, simply type

pip install diplib

Windows users might need to install the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.

To read images through the Bio-Formats library, you will need to download it separately:

python -m diplib download_bioformats

Note: The diplib package on PyPI vendors the OpenMP library for some platforms (libomp.dylib on macOS, libgomp.so on Linux). It is possible, though rare, for another package to vendor an incompatible OpenMP library, and for the combined use to cause Python to crash. See for example this issue. If you happen to run into this problem, please let us know!. You can find more information about the simultaneous use of multiple OpenMP libraries on this page.

Usage

The interface only has automatically generated docstrings that show the names of each of the parameters. Use the DIPlib reference to learn how to use each function. Get started by reading the User Manual.

These Jupyter notebooks give a short introduction:

License

Copyright 2014-2024 Cris Luengo and contributors
Copyright 1995-2014 Delft University of Technology

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this library except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
(or see the LICENSE.txt file in this distribution)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

diplib-3.5.1-cp312-cp312-win_amd64.whl (5.3 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

diplib-3.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

diplib-3.5.1-cp312-cp312-macosx_14_0_arm64.whl (5.9 MB view hashes)

Uploaded CPython 3.12 macOS 14.0+ ARM64

diplib-3.5.1-cp312-cp312-macosx_12_0_x86_64.whl (7.8 MB view hashes)

Uploaded CPython 3.12 macOS 12.0+ x86-64

diplib-3.5.1-cp311-cp311-win_amd64.whl (5.3 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

diplib-3.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

diplib-3.5.1-cp311-cp311-macosx_14_0_arm64.whl (5.9 MB view hashes)

Uploaded CPython 3.11 macOS 14.0+ ARM64

diplib-3.5.1-cp311-cp311-macosx_12_0_x86_64.whl (7.7 MB view hashes)

Uploaded CPython 3.11 macOS 12.0+ x86-64

diplib-3.5.1-cp310-cp310-win_amd64.whl (5.3 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

diplib-3.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

diplib-3.5.1-cp310-cp310-macosx_14_0_arm64.whl (5.9 MB view hashes)

Uploaded CPython 3.10 macOS 14.0+ ARM64

diplib-3.5.1-cp310-cp310-macosx_12_0_x86_64.whl (7.7 MB view hashes)

Uploaded CPython 3.10 macOS 12.0+ x86-64

diplib-3.5.1-cp39-cp39-win_amd64.whl (5.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

diplib-3.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

diplib-3.5.1-cp39-cp39-macosx_14_0_arm64.whl (5.9 MB view hashes)

Uploaded CPython 3.9 macOS 14.0+ ARM64

diplib-3.5.1-cp39-cp39-macosx_12_0_x86_64.whl (7.7 MB view hashes)

Uploaded CPython 3.9 macOS 12.0+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page