OpenCV code snippet for image noise removal