PsiLAB Help Manual
Page
Section:
Image processing functions
Name:
fmatrix_of_image
Convert an image to a gray level float matrix. The RGB values are equally weighted and converted to a gray value:
G <- (R+G+B)/3
The functions expect an abstract image of type Image.t :
fmatrix_of_image img:Image.t -> (float, 'a, 'b) Matrix.t
Example:
[] let im = load "test.bmp" [] ;;
[] let fmm = fmatrix_of_image im ;;
- : (float, '_a, '_b) Matrix.t = <abstr>
Printed by PsiLAB