PsiLAB Help Manual Page

Section: Image processing functions

Name: array_of_image

Convert an image to a native caml array. This functions converts an image in the abstract Image.t format to a native ocaml array.

array_of_image img:Image.t -> int array array

To access a point in the double array, use the native caml array access method: NL
Value(i,j) <- (img.(i)).(j)

Example:

[] let ia = array_of_image im ;; 
- : int array array = ... 

Printed by PsiLAB