public static void checkImageArguments ( ImageBase image , ImageInterleaved transform ) { InputSanityCheck . checkSameShape ( image , transform ) ; if ( 2 != transform . getNumBands ( ) ) throw new IllegalArgumentException ( "The transform must have two bands" ) ; }
Checks to see if the image and its transform are appropriate sizes . The transform should have twice the width and twice the height as the image .