public T createImage ( int width , int height ) { switch ( family ) { case GRAY : return ( T ) GeneralizedImageOps . createSingleBand ( getImageClass ( ) , width , height ) ; case INTERLEAVED : return ( T ) GeneralizedImageOps . createInterleaved ( getImageClass ( ) , width , height , numBands ) ; case PLANAR : return ( T ) new Planar ( getImageClass ( ) , width , height , numBands ) ; default : throw new IllegalArgumentException ( "Type not yet supported" ) ; } }
Creates a new image .