A multiresolution speckle reduction algorithm with application to SAR images