Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Bimage.Expr
SourceExpr implements an operation combinator which can be used to build operations from low-level functions
type _ t =
| Kernel : Input.index * Kernel.t -> float t
| Input : Input.index * int t * int t * int t -> float t
| X : int t
| Y : int t
| C : int t
| Int : int -> int t
| Float : float -> float t
| Bool : bool -> bool t
| Float_of_int : int t -> float t
| Int_of_float : float t -> int t
| Fadd : float t * float t -> float t
| Fsub : float t * float t -> float t
| Fmul : float t * float t -> float t
| Fdiv : float t * float t -> float t
| Fpow : float t * float t -> float t
| Fsqrt : float t -> float t
| Fsin : float t -> float t
| Fcos : float t -> float t
| Ftan : float t -> float t
| Fmod : float t * float t -> float t
| Iadd : int t * int t -> int t
| Isub : int t * int t -> int t
| Imul : int t * int t -> int t
| Idiv : int t * int t -> int t
| Imod : int t * int t -> int t
| Gt : 'a t * 'a t -> bool t
| Eq : 'a t * 'a t -> bool t
| Lt : 'a t * 'a t -> bool t
| And : bool t * bool t -> bool t
| Or : bool t * bool t -> bool t
| Not : bool t -> bool t
| Cond : bool t * 'a t * 'a t -> 'a t
| Func : 'b t * (int -> int -> int -> 'b -> 'a t) -> 'a t
| Pixel : Input.index * int t * int t -> Pixel.t t
| Pixel_norm : Input.index * int t * int t -> Pixel.t t
| Value : 'a -> 'a t
| Pair : 'a t * 'b t -> ('a * 'b) t
| Kind_min : Input.index -> float t
| Kind_max : Input.index -> float t
| Channels : Input.index -> int t
| Shape : Input.index -> (int * int * int) t
Create a kernel expr from an existing kernel
val join_kernel :
Input.index ->
(float t -> float t -> float t) ->
Kernel.t ->
Kernel.t ->
float t
Create a kernel expession using two kernels combined using the designated operation
Apply a transformation
Create a new Pair expr, used for joining existing expressions
Create a Pixel expr, for extracting pixels
Create a Pixel_norm expr, for extracting normalized pixels
An expression to average two images
An expression to take the lowest value from two images
An expression to take the highest value from two images
Multiply each pixel component