24 breaking releases

0.25.0 May 19, 2024
0.24.0 Mar 16, 2024
0.23.0 Apr 10, 2022
0.22.0 Nov 16, 2020
0.3.0 Mar 4, 2016

#10 in Images

Download history 14273/week @ 2024-08-02 17119/week @ 2024-08-09 14992/week @ 2024-08-16 12739/week @ 2024-08-23 13933/week @ 2024-08-30 15364/week @ 2024-09-06 15431/week @ 2024-09-13 16521/week @ 2024-09-20 15171/week @ 2024-09-27 11720/week @ 2024-10-04 13594/week @ 2024-10-11 14819/week @ 2024-10-18 17157/week @ 2024-10-25 16498/week @ 2024-11-01 19423/week @ 2024-11-08 20387/week @ 2024-11-15

76,410 downloads per month
Used in 209 crates (173 directly)

MIT license

625KB
14K SLoC

imageproc

crates.io doc-badge License Dependency status

An image processing library, based on the image library. There may initially be overlap between the functions in this library and those in image::imageops.

This is very much a work in progress. If you have ideas for things that could be done better, or new features you'd like to see, then please create issues for them. Nothing's set in stone.

API documentation

Goals

A performant, well-tested, well-documented library with a consistent API, suitable for use as the basis of computer vision applications or graphics editors.

Non-goals

Maximum genericity over image storages or formats, or support for higher-dimensional images.

Full blown computer vision applications (e.g. face recognition or image registration) probably also belong elsewhere, but the line's a bit blurred here (e.g. is image in-painting an image processing task or a computer vision task?). However, worrying about how to structure the code can probably wait until we have more code to structure...

Crate Features

Imageproc is built with these features enabled by default:

  • rayon enables multithreading for certain operations (e.g., geometric transformations) via rayon

Optionally, the following dependencies can be enabled:

  • property-testing exposes helper types and methods to enable property testing via quickcheck
  • display-window enables the displaying of images (using imageproc::window) with sdl2

How to contribute

All pull requests are welcome. Some specific areas that would be great to get some help with are:

  • New features! If you're planning on adding some new functions or modules, please create an issue with a name along the lines of "Add [feature name]" and assign it to yourself (or comment on the issue that you're planning on doing it). This way we'll not have multiple people working on the same functionality.
  • Performance - profiling current code, documenting or fixing performance problems, adding benchmarks, comparisons to other libraries.
  • Testing - more unit tests and regression tests. Some more property-based testing would be particularly nice.
  • APIs - are the current APIs hard to use or inconsistent? Some open questions: Should we return Result types more often? How should functions indicate acceptable input image dimensions? Should we use enum arguments or have lots of similarly named functions? What's the best way to get concise code while still allowing control over allocations?
  • Documentation - particularly more example code showing what's currently possible. Pretty pictures in this README.
  • Feature requests - are there any functions you'd like to see added? Is the library currently unsuitable for your use case for some reason?

Documentation

This crate uses katexit to render equations in the documentation. To open the documentation locally with katexit enabled, use

cargo doc --open --features=katexit

Dependencies

~9–12MB
~242K SLoC