Home > ISET > metrics > scielab > getPlanes.m

getPlanes

PURPOSE ^

[p1, p2, p3] = getPlanes(allplanes, whichplane)

SYNOPSIS ^

function [p1, p2, p3] = getPlanes(allplanes, whichplane)

DESCRIPTION ^

 [p1, p2, p3] = getPlanes(allplanes, whichplane)

 Separate an image matrix which has 3 planes in to 3 individual matrices.
 allplanes -- concatenated image planes, in the form [plane1 plane2 plane3].
 whichplane -- specifies which planes to return. Defaults to [1 2 3]
 (get all 3 planes, and return in p1, p2, p3).

 The separated image planes are returned in the order given by whichplane.

 If allplanes is one number, take that as the number of columns for 
 allplanes, and return the column indices of the separate planes.
 (for example, if allplanes = 6, return p1=[1 2], p2=[3 4], p3=[5 6]);

 Xuemei Zhang
 Last Modified 1/28/96

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 20-Nov-2008 22:09:04 by m2html © 2003