You can search for identifiers within the package.
in-package search v0.2.0
bimage
Bimage.Type
module type TYPE = sig ... end
type ('a, 'b) t = (module TYPE with type elt = 'b and type t = 'a)
val of_kind : ('a, 'b) Bigarray.kind -> ('a, 'b) t
val kind : ('a, 'b) t -> ('a, 'b) Bigarray.kind
Get Bigarray kind
val name : ('a, 'b) t -> string
name k returns the name of a given ty
name k
val depth : ('a, 'b) t -> int
returns the number of bits for a given ty
val max : ('a, 'b) t -> 'a
max k returns the maximum normalized value for k
max k
k
val min : ('a, 'b) t -> 'a
min k returns the minimum normalized value for k
min k
val max_f : ('a, 'b) t -> float
max k returns the maximum normalized value for k as a float
val min_f : ('a, 'b) t -> float
min k returns the minimum normalized value for k as a float
val to_float : ('a, 'b) t -> 'a -> float
to_float k x converts a value of type k to float
to_float k x
val of_float : ('a, 'b) t -> float -> 'a
of_float k x converts a float to a value of ty k
of_float k x
val clamp : ('a, 'b) t -> float -> float
Converts a float value to a value within the proper range for the given type
val normalize : ('a, 'b) t -> float -> float
Scales a value to the range 0.0-1.0
val denormalize : ('a, 'b) t -> float -> float
Sclaes a value to the range (type_min-type_max)
val convert : from:('a, 'b) t -> ('c, 'd) t -> 'a -> 'c
Convert a value of one type to another
type u8 = Bigarray.int8_unsigned_elt
type u16 = Bigarray.int16_unsigned_elt
type i32 = Bigarray.int32_elt
type i64 = Bigarray.int64_elt
type f32 = Bigarray.float32_elt
type f64 = Bigarray.float64_elt
val u8 : (int, u8) t
val u16 : (int, u16) t
val i32 : (int32, i32) t
val i64 : (int64, i64) t
val f32 : (float, f32) t
val f64 : (float, f64) t