def generatedPointGrid(pixel_width, pixel_height, width_scalar=1.0, height_scalar=1.0, horiz_points=5, vert_points=5):
 swidth = (pixel_width * width_scalar)
 sheight = (pixel_height * height_scalar)
 (x, y) = np.meshgrid(np.linspace(((- swidth) / 2.0), (swidth / 2.0), horiz_points), np.linspace(((- sheight) / 2.0), (sheight / 2.0), vert_points))
 points = np.column_stack((x.flatten(), y.flatten()))
 return points

def generatedPointGrid ( pixel_width , pixel_height , width_scalar = 1.0 , height_scalar = 1.0 , horiz_points = 5 , vert_points = 5 ) : swidth = ( pixel_width * width_scalar ) sheight = ( pixel_height * height_scalar ) ( x , y ) = np . meshgrid ( np . linspace ( ( ( - swidth ) / 2.0 ) , ( swidth / 2.0 ) , horiz_points ) , np . linspace ( ( ( - sheight ) / 2.0 ) , ( sheight / 2.0 ) , vert_points ) ) points = np . column_stack ( ( x . flatten ( ) , y . flatten ( ) ) ) return points
generate a set of points in a nxm grid .