public void transform ( GrayU8 binary ) { ImageMiscOps . fill ( transform , 0 ) ; originX = binary . width / 2 ; originY = binary . height / 2 ; r_max = Math . sqrt ( originX * originX + originY * originY ) ; for ( int y = 0 ; y < binary . height ; y ++ ) { int start = binary . startIndex + y * binary . stride ; int stop = start + binary . width ; for ( int index = start ; index < stop ; index ++ ) { if ( binary . data [ index ] != 0 ) { parameterize ( index - start , y ) ; } } } }
Computes the Hough transform of the image .