                                           1.5,
                                           blur,
                                           -0.5,
                                           0,
                                           masked)
  
          if self.args.avg_color_adjust:
              for _ in [0, 1]:
                  np.clip(masked, 0.0, 255.0, out=masked)
                  diff = frame - masked
 
</s> remove                 np.clip(masked, 0.0, 255.0, out=masked)
                diff = frame - masked
 </s> add                 np.clip(new_image, 0.0, 255.0, out=new_image)
                diff = frame - new_image </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 </s> remove                 masked = masked + adjustment
 </s> add                 new_image = new_image + adjustment </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)
            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)
                                         new_image)
                                           1.5,
                                           blur,
                                           -0.5,
                                           0,
                                         new_image)
  
          if self.args.avg_color_adjust:
              for _ in [0, 1]:
                  np.clip(masked, 0.0, 255.0, out=masked)
                  diff = frame - masked
keep keep keep keep replace keep keep keep keep keep
 auto smooth edges size and clarify naming 
plugins/convert/masked.py