A multiresolution noise removal algorithm for visual pattern recognition in imaging detectors