package bimage
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7d4019a7783f20e5d9f1af72d0b5b14ef56cbfad9ed440da752cfc24d0f8d083
sha512=4abfcfcde072b8bae76ca24dd25b31e0695c08a7b2d43fa5a433ade3202527af4d24fbed9b3b90fe3888b837acaa8c6718e39c8a6014d61ee7faa390818a1133
doc/README.html
bimage — Image processing library
v0.3.1-36-g67b5cdd
bimage is an image processing library for OCaml.
Features
- Simple image type based on bigarrays
- Supports u8, u16, i32, i64, f32, f64 datatypes
- Composable image operations
- Image I/O using OpenImageIO (
bimage-io) - Image I/O using ImageMagick/GraphicsMagick and stb_image (
bimage-unix) - GLFW window support (
bimage-display)
bimage is distributed under the ISC license.
Homepage: https://github.com/zshipko/ocaml-bimage
Installation
bimage can be installed with opam:
$ opam install bimagebimage-io can be installed by running:
$ opam install bimage-ioAdditionally, bimage-unix, which provides stb-image and ImageMagick bindings, can be installed by running:
$ opam install bimage-unixIf you don't use opam consult the opam file for build instructions.
Getting started
Type.t: Defines the type of an image:u8,u16,f32,f64,i32ori64Color.t: Defines the color of an image:gray,rgb,rgba,xyzandyuv- It's possible to extend the color type by implementing COLOR
Image.t: Image typeKernel.t: Convolution kernelsTransform.t: Image transformationsExpr.t: Expression combinator- Building blocks for image processing filters
Filter.t: Executable image filter- Makes
Expr.texecutable
- Makes
There is a corresponding file for each of these types in src/.
Examples
See examples/ for usage examples
Documentation
The documentation and API reference is generated from the source interfaces. It can be consulted online or via odig doc bimage.
Tests
In the distribution sample programs and tests are located in the test directory. They can be built and run with:
dune runtest