def generate_megaman_data(sampling=<NUM_LIT:2>):
data = get_megaman_image()<EOL>x = np.arange(sampling * data.shape[<NUM_LIT:1>]) / float(sampling)<EOL>y = np.arange(sampling * data.shape[<NUM_LIT:0>]) / float(sampling)<EOL>X, Y = map(np.ravel, np.meshgrid(x, y))<EOL>C = data[np.floor(Y.max() - Y).astype(int),<EOL>np.floor(X).astype(int)]<EOL>return np.vstack([X, Y]).T, C<EOL>
Generate 2D point data of the megaman image