private boolean checkMax ( T image , double adj , double bestScore , int c_x , int c_y ) { sparseLaplace . setImage ( image ) ; boolean isMax = true ; beginLoop : for ( int i = c_y - 1 ; i <= c_y + 1 ; i ++ ) { for ( int j = c_x - 1 ; j <= c_x + 1 ; j ++ ) { double value = adj * sparseLaplace . compute ( j , i ) ; if ( value >= bestScore ) { isMax = false ; break beginLoop ; } } } return isMax ; }
See if the best score is better than the local adjusted scores at this scale