                  kernel = np.ones((3, 3)) * (-1)
                  kernel[1, 1] = 9
                  masked = cv2.filter2D(masked, -1, kernel)  # pylint: disable=no-member
              elif self.args.sharpen_image == "gaussian_filter":
                  blur = cv2.GaussianBlur(masked, (0, 0), 3.0)  # pylint: disable=no-member
                  masked = cv2.addWeighted(masked,  # pylint: disable=no-member
                                           1.5,
                                           blur,
                                           -0.5,
                                           0,
                                           masked)
 
</s> remove                 masked = cv2.filter2D(masked, -1, kernel)  # pylint: disable=no-member
 </s> add                 new_image = cv2.filter2D(new_image, -1, kernel)  # pylint: disable=no-member </s> remove             np.clip(masked, 0.0, 255.0, out=masked)
 </s> add             np.clip(new_image, 0.0, 255.0, out=new_image) </s> remove                                          masked)
 </s> add                                          new_image) </s> remove             foreground = masked * image_mask
 </s> add             foreground = new_image * image_mask
                blur = cv2.GaussianBlur(new_image, (0, 0), 3.0)  # pylint: disable=no-member
                new_image = cv2.addWeighted(new_image,  # pylint: disable=no-member
                  kernel = np.ones((3, 3)) * (-1)
                  kernel[1, 1] = 9
                  masked = cv2.filter2D(masked, -1, kernel)  # pylint: disable=no-member
              elif self.args.sharpen_image == "gaussian_filter":
                blur = cv2.GaussianBlur(new_image, (0, 0), 3.0)  # pylint: disable=no-member
                new_image = cv2.addWeighted(new_image,  # pylint: disable=no-member
                blur = cv2.GaussianBlur(new_image, (0, 0), 3.0)  # pylint: disable=no-member
                new_image = cv2.addWeighted(new_image,  # pylint: disable=no-member
                                           1.5,
                                           blur,
                                           -0.5,
                                           0,
                                           masked)
keep keep keep keep replace replace keep keep keep keep keep
 auto smooth edges size and clarify naming 
plugins/convert/masked.py