Home > ISET > vcamera > scene > Pattern > checkerboard.m

checkerboard

PURPOSE ^

Create a checkerboard image

SYNOPSIS ^

function im = checkerboard(checkPeriod,nCheckPairs)

DESCRIPTION ^

 Create a checkerboard image

   im = checkerboard(checkPeriod,nCheckPairs)

 Purpose:
   A black and white checkerboard image, suitable for using as part of a
   test scene (say for optical geometric distortion) is returned.  The
   checkPeriod is specified in terms of pixels.  The number of pairs of
   black and white checks (both vertically and horizontally) is also
   created. 

 Example:
   im = checkerboard(16,8); 
   imshow(im); colormap(gray);
   imwrite(im,'checkerboard.jpg','jpeg');

 Copyright ImagEval Consultants, LLC, 2005.

CROSS-REFERENCE INFORMATION ^

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