package bimage

  1. Overview
  2. Docs

Module Bimage.ExprSource

Expr implements an operation combinator which can be used to build operations from low-level functions

Sourcetype _ t =
  1. | Kernel : Kernel.t -> float t
  2. | Input : int * int t * int t * int t -> float t
  3. | X : int t
  4. | Y : int t
  5. | C : int t
  6. | Int : int -> int t
  7. | Float : float -> float t
  8. | Bool : bool -> bool t
  9. | Float_of_int : int t -> float t
  10. | Int_of_float : float t -> int t
  11. | Fadd : float t * float t -> float t
  12. | Fsub : float t * float t -> float t
  13. | Fmul : float t * float t -> float t
  14. | Fdiv : float t * float t -> float t
  15. | Fpow : float t * float t -> float t
  16. | Fsqrt : float t -> float t
  17. | Fsin : float t -> float t
  18. | Fcos : float t -> float t
  19. | Ftan : float t -> float t
  20. | Fmod : float t * float t -> float t
  21. | Iadd : int t * int t -> int t
  22. | Isub : int t * int t -> int t
  23. | Imul : int t * int t -> int t
  24. | Idiv : int t * int t -> int t
  25. | Imod : int t * int t -> int t
  26. | Gt : 'a t * 'a t -> bool t
  27. | Eq : 'a t * 'a t -> bool t
  28. | Lt : 'a t * 'a t -> bool t
  29. | And : bool t * bool t -> bool t
  30. | Or : bool t * bool t -> bool t
  31. | Not : bool t -> bool t
  32. | If : bool t * 'a t * 'a t -> 'a t
Sourceval f : ?x:int ref -> ?y:int ref -> ?c:int ref -> float t -> ('a, 'b, 'c) Op.t
Sourceval eval : ?x:int ref -> ?y:int ref -> ?c:int ref -> float t -> ('a, 'b, 'c, 'd, 'e, 'f) filter

Convert an Expr to a filter

Sourceval int : int -> int t

Create an int Expr

Sourceval float : float -> float t

Create a float Expr

Sourceval int_of_float : float t -> int t
Sourceval float_of_int : int t -> float t
Sourceval x : int t
Sourceval y : int t
Sourceval c : int t
Sourceval kernel : Kernel.t -> float t
Sourceval input : int -> int t -> int t -> int t -> float t
Sourceval fadd : float t -> float t -> float t
Sourceval fsub : float t -> float t -> float t
Sourceval fmul : float t -> float t -> float t
Sourceval fdiv : float t -> float t -> float t
Sourceval iadd : int t -> int t -> int t
Sourceval isub : int t -> int t -> int t
Sourceval imul : int t -> int t -> int t
Sourceval idiv : int t -> int t -> int t
Sourceval pow : float t -> float t -> float t
Sourceval sqrt : float t -> float t
Sourceval sin : float t -> float t
Sourceval cos : float t -> float t
Sourceval tan : float t -> float t
Sourceval pi : unit -> float t
Sourceval and_ : bool t -> bool t -> bool t
Sourceval or_ : bool t -> bool t -> bool t
Sourceval not_ : bool t -> bool t
Sourceval if_ : bool t -> 'a t -> 'a t -> 'a t
Sourceval (+) : int t -> int t -> int t

Integer addition

Sourceval (-) : int t -> int t -> int t

Integer subtraction

Sourceval (*) : int t -> int t -> int t

Integer multiplacation

Sourceval (/) : int t -> int t -> int t

Integer division

Sourceval (+.) : float t -> float t -> float t

Float addition

Sourceval (-.) : float t -> float t -> float t

Float subtraction

Sourceval (*.) : float t -> float t -> float t

Float multiplication

Sourceval (/.) : float t -> float t -> float t

Float division

Sourceval (**) : float t -> float t -> float t

Pow

OCaml

Innovation. Community. Security.