  
              func = cv2.erode if ratio > 0 else cv2.dilate
              eroded.append(func(mask, kernel, iterations=1, anchor=anchor))
  
          mask = np.min(np.array(eroded), axis=0) if len(eroded) > 1 else eroded[0]
          return mask[..., None]
  
      def _get_erosion_kernels(self, mask: np.ndarray) -> List[np.ndarray]:
          """ Get the erosion kernels for each of the center, left, top right and bottom erosions.
  
          An approximation is made based on the number of positive pixels within the mask to create
 
</s> remove             eroded.append(func(mask, kernel, iterations=1, anchor=anchor))
 </s> add             eroded = func(eroded, kernel, iterations=1, anchor=anchor) </s> remove         eroded = []
 </s> add         eroded = mask
        return eroded[..., None]
  
              func = cv2.erode if ratio > 0 else cv2.dilate
              eroded.append(func(mask, kernel, iterations=1, anchor=anchor))
  
        return eroded[..., None]
        return eroded[..., None]
  
      def _get_erosion_kernels(self, mask: np.ndarray) -> List[np.ndarray]:
          """ Get the erosion kernels for each of the center, left, top right and bottom erosions.
  
          An approximation is made based on the number of positive pixels within the mask to create
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: Mask blend. Apply masks in sequence 
plugins/convert/mask/mask_blend.py