Depending on what you want to do, you can estimate the density of your corners as follows:
Make a Density Estimator image
- Make a 64x64 black image
- Draw a 16x16 radius white circle at its center
- Gaussian Blur it with a filter size of ~15
- You now have a 2D "gaussian" pattern you can use as a density estimator
Create a black image of the same size as your input (say 640x480)
- For each of your detected corners
- Add the Density Estimator image to the black image with a small weight (you'll be adding a lot of them)
- You now have an image that has blobs that become very white if there are a lot of edges in that region, and remains black where you dont have them
You can then use that image to find regions of high density. The only parameter you have to play with is the size of your Estimator image (larger circle == smoother output).
Incidentally, this is exactly what a RBF kernel does.
However
if you only want to know the "center of mass" of your corners (i.e. you only want ONE answer, and not a density) you can do it much more easily, and FooBar's solution is also perfect for that (and much faster).