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:
-
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.
-
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.
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for diplib-3.5.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8792e6a46a8bf47c367265265cf886b00a3c1ad60208bb2299c39c492c0a3b4 |
|
MD5 | 2ad50effe4e574d11024123903288a4b |
|
BLAKE2b-256 | d40ded841422c61b7a6a983fed8068dbb00402f94c5e9e3ff1b0e6ee882efc11 |
Hashes for diplib-3.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 877ecfe50f439752213c0f7cc07a72e89b4c365af6d281baecd6a5de67eee881 |
|
MD5 | 9b0a1af44ecb906f51f6347bf78e6607 |
|
BLAKE2b-256 | 8f4d19a8e54bd113603a599764e84cac4064e81edbf060cf42cbe492ff5316b8 |
Hashes for diplib-3.5.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc913fe478dad5e7c72cb7ad3a415e78f759f1b5b7d189d79965b663d5d1b166 |
|
MD5 | af32f958947bcd13ce5d2e618a9d3b00 |
|
BLAKE2b-256 | dba52b47c36aa5c0179c110af4e72c1dad7eac0856d5c6918288c9521d1d25a8 |
Hashes for diplib-3.5.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63f640b9ef750a136f3605dbf70edcc4ea0dab6c3d1198600a23278a9e7ede05 |
|
MD5 | 8c8ba40fc265197b83e56fbc72315dda |
|
BLAKE2b-256 | 5802dd1a29c647432c308521d7c4c973008dd5cdc36a277dda91056f407d41df |
Hashes for diplib-3.5.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d3936d1c433934d7e18da188c461638e22126cb2098abe3329085693bf01c6 |
|
MD5 | 43c0f38e7ad5305308c60e1a8011ecc9 |
|
BLAKE2b-256 | 0c39d452c8cf0b0786ea53ad168e3d4db4f274cae7f6563fe0c3eda5399297a7 |
Hashes for diplib-3.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0353d6c214bea10fd0e4521e230d36f7cda2201f9225e9bab9a10c21ba954b35 |
|
MD5 | 407d11e25deb9653dbc3e021eabaac3b |
|
BLAKE2b-256 | 05f8b49f7cd8f8169fae82a3a9882bb4ea20a308c7f87f048e24dda6876c3773 |
Hashes for diplib-3.5.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6def244fbece99345d61d55f9117f854dc601cba9e4186ce68561d10ca897d11 |
|
MD5 | d772b6f60cb690b9eb5adc49ff6a765c |
|
BLAKE2b-256 | 1213538afa122e5fc586a65fbf87bf503adfd34bac214b61ef452eb55613157e |
Hashes for diplib-3.5.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df0a6b4b4503ee7d76800a48b61da7b2e85d017b8f25a0f96ef01c8ccf96f357 |
|
MD5 | fbaef858119eacaa3de849248daf0f1d |
|
BLAKE2b-256 | 7449ea0e4df863cd17596f6858404248cce3dfdeec4ad6ccb908a7cff54af7c5 |
Hashes for diplib-3.5.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cff25c438151fbab2f7c91875e880a5ce767c3526ec2f336e5fee3366bb399a |
|
MD5 | 80344a22a3d6ffdaabdd82f789c74a3f |
|
BLAKE2b-256 | 4ff4c408b7c30593abde2a955bc8af52cf0d14723f10b84926a4601745aea7af |
Hashes for diplib-3.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3ce21a36b4163fd88613b0376c504722909b1c1bb6436b0406be4e8578705c7 |
|
MD5 | 6af6b986819d7576710a403f765f4329 |
|
BLAKE2b-256 | d91dfb3ae79e4a17c67a47644d1149ee9605f10598ca260c16584870a76c05de |
Hashes for diplib-3.5.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47601c24970ad5535903002ffbe8b8e5f4a5eeea18277708f2d56c3127a26ebd |
|
MD5 | a6b63eb19239d5fb8098cd87a973b289 |
|
BLAKE2b-256 | 087c6f0fa0e1fcc93438ca3748bb7707d18ed029c1547bc906b4ffff127b5215 |
Hashes for diplib-3.5.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2414c25eebc47653b57afa6513479768427a9f39c3cd17fc27edcdb9ffdcce16 |
|
MD5 | 6ca6b4bca1dc9c1b59dc14933b9640ea |
|
BLAKE2b-256 | b52b3f8251aae5a58a596fe82b329e76cb633eb905488af7ca9e5fbf3e52959d |
Hashes for diplib-3.5.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605321b127e281f9a39f542c9f49845e87d199e9b07295eaa8c9a10725183746 |
|
MD5 | 1402372412ddf2821c03f8123e74f0fc |
|
BLAKE2b-256 | 0315f132a205e076bdd08a4ffd7aa55a6d7eb209b1d20a61a33895bede5509b8 |
Hashes for diplib-3.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e0e43c2fa546d32c6982fb735aebfa52ab0c3b90b470eed8a805313fff3ccc |
|
MD5 | bba31cb7909f686cb315134b3c4fe11d |
|
BLAKE2b-256 | f19208ee709484277712bea194ed61e4951bfbc6b09bd544a2a0f02488bdb8c9 |
Hashes for diplib-3.5.0-cp39-cp39-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f066a397f19c46ad7c7404d808636aad96fdef050e8bca560c3483b4e435ae9 |
|
MD5 | 713dee9da0313db739184cdf45812448 |
|
BLAKE2b-256 | c4b0fa6b171edcf8ce623d08c89a477785d826a5b22593f19ee8537d1a708718 |
Hashes for diplib-3.5.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf658e5f317a47defde3e81d8d02ae814bf1b7c42741f30a7e359da6a5c815b |
|
MD5 | c16d276c6bee9bcf3220d34b10a21099 |
|
BLAKE2b-256 | 7b6e1ee6237b74383308a64557595e5917fcc1ba2449dff04352bac2964fc819 |
Hashes for diplib-3.5.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93523c5dc215f4efbc5f7076735934c83ec79dd8e536deb9fbe4edc8e9852cf3 |
|
MD5 | 78c812071f3a002849e35fc1512a8a9a |
|
BLAKE2b-256 | cf4d6f2a3c8cba87287c01396bac4df44d94f692fa018eced607f4e8d539f81e |