code: public static <O extends ImageGray<O>>
  	O[] declareOutput( ImagePyramid<?> pyramid , Class<O> outputType ) {
  		O[] ret = (O[])Array.newInstance(outputType,pyramid.getNumLayers());
  
  		for( int i = 0; i < ret.length; i++ ) {
  			int w = pyramid.getWidth(i);
  			int h = pyramid.getHeight(i);
  			ret[i] = GeneralizedImageOps.createSingleBand(outputType,w,h);
  		}
  
  		return ret;
  	}
docs: Creates an array of single band images for each layer in the provided pyramid.  Each image will
  be the same size as the corresponding layer in the pyramid.
  
  @param pyramid (Input) Image pyramid
  @param outputType (Input) Output image type
  @param <O> Output image type
  @return An array of images