public static double computeError ( GrayF32 imgA , GrayF32 imgB ) { final int h = imgA . getHeight ( ) ; final int w = imgA . getWidth ( ) ; double total = 0 ; for ( int y = 0 ; y < h ; y ++ ) { for ( int x = 0 ; x < w ; x ++ ) { double difference = Math . abs ( imgA . get ( x , y ) - imgB . get ( x , y ) ) ; total += difference ; } } return total / ( w * h ) ; }
todo push to what ops? Also what is this error called again?