code: public static <O extends ImageGray<O>>
  	void reshapeOutput( ImagePyramid<?> pyramid , O[] output ) {
  
  		for( int i = 0; i < output.length; i++ ) {
  			int w = pyramid.getWidth(i);
  			int h = pyramid.getHeight(i);
  			output[i].reshape(w, h);
  		}
  	}
docs: Reshapes each image in the array to match the layers in the pyramid
  @param pyramid (Input) Image pyramid
  @param output (Output) List of images which is to be resized
  @param <O> Image type