Image Erosion manual implementation not doing anything Python
问题 Testing image I write a Python script that manually do a Erosion Morphological Operation to an image using the attached test image, but when I display both the original and altered image, this last one still looks the same even thought is it supposed to be eroded. I have 3 functions, my Main function, a RGB to Gray Conversion function and the Erosion function. import cv2 import math import numpy as np from PIL import Image, ImageFilter def main(): #Read image img = cv2.imread('pattern04.bmp')