protected static boolean checkMax ( ImageBorder_F32 inten , float bestScore , int c_x , int c_y ) { for ( int y = c_y - 1 ; y <= c_y + 1 ; y ++ ) { for ( int x = c_x - 1 ; x <= c_x + 1 ; x ++ ) { if ( inten . get ( x , y ) >= bestScore ) { return false ; } } } return true ; }
Sees if the best score in the current layer is greater than all the scores in a 3x3 neighborhood in another layer .