Home > ISET > utility > getMiddleMatrix.m

getMiddleMatrix

PURPOSE ^

Extract values near middle of a matrix.

SYNOPSIS ^

function middleM = getMiddleMatrix(m,sz)

DESCRIPTION ^

Extract values near middle of a matrix.

   middleM = getMiddleMatrix(m,sz)

 Data values from the middle of a matrix are returned. The total number
 of extracted pixels is 1 + round(sz/2)*2.  This is awkward  for small
 numbers of sz, but OK for bigger numbers.  
   
  Example:
     m = reshape([1:81],9,9);
     foo = getMiddleMatrix(m,3)

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003