You can search for identifiers within the package.
in-package search v0.2.0
bimage
Bimage.Kind
val name : ('a, 'b) kind -> string
name k returns the name of a given kind
name k
val depth : ('a, 'b) kind -> int
returns the number of bits for a given kind
val max : ('a, 'b) kind -> 'a
max k returns the maximum normalized value for k
max k
k
val min : ('a, 'b) kind -> 'a
min k returns the minimum normalized value for k
min k
val max_f : ('a, 'b) kind -> float
max k returns the maximum normalized value for k as a float
val min_f : ('a, 'b) kind -> float
min k returns the minimum normalized value for k as a float
val to_float : ('a, 'b) kind -> 'a -> float
to_float k x converts a value of kind k to float
to_float k x
val of_float : ('a, 'b) kind -> float -> 'a
of_float k x converts a float to a value of kind k
of_float k x
val clamp : ('a, 'b) kind -> float -> float
Converts a float value to a value within the proper range for the given kind
val normalize : ('a, 'b) kind -> float -> float
Scales a value to the range 0.0-1.0
val denormalize : ('a, 'b) kind -> float -> float
Sclaes a value to the range (kind_min-kind_max)
val convert : from:('a, 'b) kind -> ('c, 'd) kind -> 'a -> 'c