I have a list of {x, y} integer pairs representing single events in pixel coordinates in the {x, y} plane, with occasional duplicates. I'd like to convert that list into an image. There are only a few thousand {x,y} pairs, but the x y space is large, 1k x 1k, so Histogram3D[XYlist, {xpixels, ypixels}] is very slow. Is there a simple command to convert this list into a 2d array (or an image)?
For example, with only 4 points:
coords = {{1, 4}, {2, 5}, {1000, 300}, {250, 300}}
Histogram3D[coords, {1000, 1000}]
This returns a graphical histogram after some time. I'd like a 2d array or image. Maybe use HistogramList somehow?
I'm hoping there's a better way than defining a 2d constant array and looping through the list of points to populate it, incrementing the pixel value for each hit.



{x, y}? – march Nov 14 '15 at 00:18