def remove_outline(img: np.ndarray, outline_mask: np.ndarray) -> np.ndarray:
        """
        Remove the outlined region from an image based on an outline mask.

        Args:
            img (np.ndarray): The input image as a NumPy array.
            outline_mask (np.ndarray): The binary mask that defines the outline region to be removed.

        Returns:
            np.ndarray: The resulting image with the outlined region removed.
        """
        # Convert outline mask to binary (0 or 1)
        binary_outline_mask = (outline_mask > 128).astype(np.uint8)

        # Invert the binary outline mask (0 for areas to exclude, 1 for areas to keep)
        inverted_mask = cv2.bitwise_not(binary_outline_mask)

        # Apply the inverted mask to the input image
        result_image = cv2.bitwise_and(img, img, mask=inverted_mask)

        return result_image

        Remove the outlined region from an image based on an outline mask.

        Args:
            img (np.ndarray): The input image as a NumPy array.
            outline_mask (np.ndarray): The binary mask that defines the outline region to be removed.

        Returns:
            np.ndarray: The resulting image with the outlined region removed.
        
scripts/easyphoto_utils/tryon_utils.py