Text this: Reduction of speckle noise by using an adaptive window