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 ) ; } }
Reshapes each image in the array to match the layers in the pyramid