package bimage-unix
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9490a99848142a921ecb5da5b91b53682e7b372119dcf0ccf868d82f893b15d1
sha512=4e1d2a039931e014f319f54e73ed0cc7c1f819a4490d95693ce0d8797bc22e81027985f6bbbda3c3c6619dfd8f4bc01fe48b20cda2482ad279c9143d09c2a8c7
Description
An image processing library for OCaml providing efficient, composable operations. Additionally, bimage supports most types supported by Bigarray.
README
bimage — Image processing library
v0.3.1
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 bimage
bimage-io can be installed by running:
$ opam install bimage-io
Additionally, bimage-unix
, which provides stb-image
and ImageMagick
bindings, can be installed by running:
$ opam install bimage-unix
If 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
, i32or
i64`Color.t
: Defines the color of an image:gray
,rgb
,rgba
,xyz
andyuv
It's possible to extend the color type by implementing COLOR
Image.t
: Image typeKernel.t
: Convolution kernelsTransform.t
: Image transformationsExpr.t
: Expression combinatorBuilding blocks for image processing filters
Filter.t
: Executable image filterMakes
Expr.t
executable
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
Dependencies (5)
-
ctypes-foreign
>= "0.4"
-
ctypes
>= "0.14"
-
bimage
= version
-
dune
>= "2.0"
-
ocaml
>= "4.08.0"
Dev Dependencies
None
Used by
None
Conflicts
None