          """ Perform gaussian blur on the edges of the output rect """
          width, height, _ = new_face.shape
          crop = slice(0, width)
          mask = np.zeros_like(new_face)
          mask[height // 15:-height // 15, width // 15:-width // 15, :] = 255
          mask = cv2.GaussianBlur(mask,  # pylint: disable=no-member
                                  (15, 15),
                                  10)
          new_face[crop, crop] = (mask / 255 * new_face +
                                  (1 - mask / 255) * old_face)
 
</s> remove         width, height, _ = new_face.shape
 </s> add  </s> remove                                 (15, 15),
                                10)
        new_face[crop, crop] = (mask / 255 * new_face +
                                (1 - mask / 255) * old_face)
 </s> add                                 (window, window),
                                sigma)
        new_face[crop, crop] = (mask * new_face + (1.0 - mask ) * old_face) </s> remove             np.clip(masked, 0.0, 255.0, out=masked)
            masked = self.color_hist_match(masked, frame, image_mask)
 </s> add             np.clip(new_image, 0.0, 255.0, out=new_image)
            new_image = self.color_hist_match(new_image, frame, image_mask) </s> remove                 blur = cv2.GaussianBlur(masked, (0, 0), 3.0)  # pylint: disable=no-member
                masked = cv2.addWeighted(masked,  # pylint: disable=no-member
 </s> add                 blur = cv2.GaussianBlur(new_image, (0, 0), 3.0)  # pylint: disable=no-member
                new_image = cv2.addWeighted(new_image,  # pylint: disable=no-member
        mask[erode, erode] = 1.0
          """ Perform gaussian blur on the edges of the output rect """
          width, height, _ = new_face.shape
          crop = slice(0, width)
          mask = np.zeros_like(new_face)
        mask[erode, erode] = 1.0
          mask = cv2.GaussianBlur(mask,  # pylint: disable=no-member
                                  (15, 15),
                                  10)
          new_face[crop, crop] = (mask / 255 * new_face +
                                  (1 - mask / 255) * old_face)
keep keep keep keep replace keep keep keep keep keep
 auto smooth edges size and clarify naming 
plugins/convert/masked.py