Quote:
Originally Posted by wsh32
2. You can also eliminate noise by applying a gaussian blur and running cv erode followed by cv dilate (same number of iterations).
|
There's another way to do this that is embarrassingly low tech.
If you camera has manually adjustable focus, you can deliberately defocus your lens just bit to get a bit of optical blur. You lose a little bit of crispness near the edges of the target, but if you are just trying to find the center of a blob with very coarse shape filtering (ex. size or aspect ratio) it doesn't have a significant effect on accuracy.