Skip to main content

High-performance image processing functions for deep learning and computer vision.

Project description

Algocore: High-Performance Image Processing Functions

Algocore is a library of optimized atomic functions designed for efficient image processing. These functions serve as the foundation for Albumentations, a popular image augmentation library.

Overview

Image processing operations can be implemented in various ways, each with its own performance characteristics depending on the image type, size, and number of channels. Algocore aims to provide the fastest implementation for each operation by leveraging different backends such as NumPy, OpenCV, and custom optimized code.

Key features:

  • Optimized atomic image processing functions
  • Automatic selection of the fastest implementation based on input image characteristics
  • Seamless integration with Albumentations
  • Extensive benchmarking for performance validation

Installation

pip install algocore

Usage

import numpy as np
import algocore
# Create a sample image
image = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
# Apply a function
result = algocore.multiply(image, 1.5)

Algocore automatically selects the most efficient implementation based on the input image type and characteristics.

Functions

Algocore includes optimized implementations for various image processing operations, including:

  • Arithmetic operations (add, multiply, power)
  • Normalization (per-channel, global)
  • Geometric transformations (vertical flip, horizontal flip)
  • Helper decorators (to_float, to_uint8)

Performance

Algocore uses a combination of techniques to achieve high performance:

  1. Multiple Implementations: Each function may have several implementations using different backends (NumPy, OpenCV, custom code).
  2. Automatic Selection: The library automatically chooses the fastest implementation based on the input image type, size, and number of channels.
  3. Optimized Algorithms: Custom implementations are optimized for specific use cases, often outperforming general-purpose libraries.

Benchmarks

We maintain an extensive benchmark suite to ensure Algocore's performance across various scenarios. You can find the benchmarks and their results in the benchmarks directory.

License

MIT

Acknowledgements

Algocore is part of the Albumentations project. We'd like to thank all contributors to Albumentations and the broader computer vision community for their inspiration and support.

Project details


Download files

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

Source Distribution

algocore-0.0.28.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algocore-0.0.28-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file algocore-0.0.28.tar.gz.

File metadata

  • Download URL: algocore-0.0.28.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for algocore-0.0.28.tar.gz
Algorithm Hash digest
SHA256 1f21af1bc8205fa9826c15627f67dfd5ab4af576af9c080534553680d13f6477
MD5 b745a6abcf361369c29a0c5f93719cbb
BLAKE2b-256 6685a0e9639dede3846bb9e352f078aad29e6c41c26ee61dfd2659230279019d

See more details on using hashes here.

File details

Details for the file algocore-0.0.28-py3-none-any.whl.

File metadata

  • Download URL: algocore-0.0.28-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for algocore-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 0467e77a16871b6895f1f7f1df22e1d85ca92815a0686624d3a7e61b5fa290d6
MD5 8109bafc1a47803565a3a65d6230f800
BLAKE2b-256 814d2e72b6fb8b22bfbd143cd78907717de194168ea43c2ba7405956867d92b1

See more details on using hashes here.

Supported by

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