#NEWLINE# def get_descriptors( image , filtered_coords , wid = 5 ) : #NEWLINE# #INDENT# ' For each point return pixel values around the point\n        using a neighbourhood of width 2*wid+1. (Assume points are \n        extracted with min_distance > wid). ' #NEWLINE# desc = [ ] #NEWLINE# for coords in filtered_coords : #NEWLINE# #INDENT# patch = image [ ( coords [ 0 ] - wid ) : ( ( coords [ 0 ] + wid ) + 1 ) , ( coords [ 1 ] - wid ) : ( ( coords [ 1 ] + wid ) + 1 ) ] . flatten ( ) #NEWLINE# desc . append ( patch ) #NEWLINE# #UNINDENT# return image