public static < T extends ImageGray < T > > void down ( Planar < T > input , int sampleWidth , Planar < T > output ) { for ( int band = 0 ; band < input . getNumBands ( ) ; band ++ ) { down ( input . getBand ( band ) , sampleWidth , output . getBand ( band ) ) ; } }
Down samples a planar image . Type checking is done at runtime .