PsiLAB Help Manual Page

Section: Image processing functions

Name: half

Split a 2 dimensional matrix in even and odd lines.
This functions returns a tuple of 2 new matrices p1 and p2 , both with half row number of matrix mat . p1 contains all odd rows from mat , and p2 all even rows.

half mat: ('a, 'b, 'c) Matrix.t ->
('a, 'd, 'e) Matrix.t * ('a, 'd, 'e) Matrix.t


[] let f = fmatrix ~dim:[20;10] ~rand:[1.0] () ;; 
[] let (p1,p2) = half f ;; 

Printed by PsiLAB