I want to create a 2d numpy array of all the pixel locations for a 512 x 512 image. Meaning there would be 5122 or 262,144 values. It may be slightly more if the x and y zeroes are considered, but you get the idea.
To do it manually would be like this pixels = np.array([[0, 1], [0, 2], [0,3], [0,4]]) all the way to the end. But obviously I need to automate it. The order of pixels doesn't matter though. It needs to be in that "format" so I can access the pixels x and y values by 0 and 1 index i.e. pixels[0][0] for the first pixel's x value and pixels[0][1] for the first pixel's y value.


for-loops to automate it.