1 | initial version |
Depending on what you want to do, you can estimate the density of your corners as follows:
Make a Density Estimator image
Create a black image of the same size as your input (say 640x480)
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).