def get_descriptors(image, filtered_coords, wid=5):
 desc = []
 for coords in filtered_coords:
  patch = image[(coords[0] - wid):((coords[0] + wid) + 1), (coords[1] - wid):((coords[1] + wid) + 1)].flatten()
  desc.append(patch)
 return desc

def get_descriptors ( image , filtered_coords , wid = 5 ) : desc = [ ] for coords in filtered_coords : patch = image [ ( coords [ 0 ] - wid ) : ( ( coords [ 0 ] + wid ) + 1 ) , ( coords [ 1 ] - wid ) : ( ( coords [ 1 ] + wid ) + 1 ) ] . flatten ( ) desc . append ( patch ) return desc
for each point return pixel values around the point using a neighbourhood of width 2*wid+1 .