public void process ( GrayF32 intensity , QueueCorner corners ) { corners . reset ( ) ; float data [ ] = intensity . data ; for ( int y = 0 ; y < intensity . height ; y ++ ) { int startIndex = intensity . startIndex + y * intensity . stride ; int endIndex = startIndex + intensity . width ; for ( int index = startIndex ; index < endIndex ; index ++ ) { if ( data [ index ] > thresh ) { int x = index - startIndex ; corners . add ( x , y ) ; } } } }
Selects pixels as corners which are above the threshold .