Bimage.KernelConvolution kernels
val v : rows:int -> cols:int -> tv ~rows ~cols makes a new Kernel with the given dimensions
val rows : t -> intReturns the number of rows in a kernel
val cols : t -> intReturns the number of columns in a kernel
val of_array : ?norm:bool -> float array array -> tCreate a kernel from an existing 2-dimensional float array. When norm is true, the kernel will be normalized
val to_array : t -> float array arrayConvert a kernel to a 2-dimensional float array
val get : t -> int -> int -> floatget kernel y x gets the value at (x, y)
val set : t -> int -> int -> float -> unitset kernel y x v sets the value at (x, y)
val sum : t -> floatGet the sum of each value of a kernel
normalize kernel returns a kernel where each element has been divided by the sum of all elements
val sobel_x : tSobel kernel in the X direction onlu
val sobel_y : tSobel kernel in the Y direction only
val gaussian : ?std:float -> int -> tgassian n generates a new nxn gaussian kernel
module Infix : sig ... end