Bimage.Typemodule type TYPE = sig ... endval of_kind : ( 'a, 'b ) Stdlib.Bigarray.kind -> ( 'a, 'b ) tval kind : ( 'a, 'b ) t -> ( 'a, 'b ) Stdlib.Bigarray.kindGet Bigarray kind
val name : ( 'a, 'b ) t -> stringname k returns the name of a given ty
val depth : ( 'a, 'b ) t -> intreturns the number of bits for a given ty
val max : ( 'a, 'b ) t -> 'amax k returns the maximum normalized value for k
val min : ( 'a, 'b ) t -> 'amin k returns the minimum normalized value for k
val max_f : ( 'a, 'b ) t -> floatmax k returns the maximum normalized value for k as a float
val min_f : ( 'a, 'b ) t -> floatmin k returns the minimum normalized value for k as a float
val to_float : ( 'a, 'b ) t -> 'a -> floatto_float k x converts a value of type k to float
val of_float : ( 'a, 'b ) t -> float -> 'aof_float k x converts a float to a value of ty k
val clamp : ( 'a, 'b ) t -> float -> floatConverts a float value to a value within the proper range for the given type
val normalize : ( 'a, 'b ) t -> float -> floatScales a value to the range 0.0-1.0
val denormalize : ( 'a, 'b ) t -> float -> floatSclaes a value to the range (type_min-type_max)