                      val = 0 if idx < 3 else max(kernel.shape) - 1
                  anchor[pos] = val
  
              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]:
 
</s> remove         mask = np.min(np.array(eroded), axis=0) if len(eroded) > 1 else eroded[0]
        return mask[..., None]
 </s> add         return eroded[..., None] </s> remove         eroded = []
 </s> add         eroded = mask
            eroded = func(eroded, kernel, iterations=1, anchor=anchor)
                      val = 0 if idx < 3 else max(kernel.shape) - 1
                  anchor[pos] = val
  
              func = cv2.erode if ratio > 0 else cv2.dilate
            eroded = func(eroded, 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]:
keep keep keep keep replace keep keep keep keep keep
 bugfix: Mask blend. Apply masks in sequence 
plugins/convert/mask/mask_blend.py