Home > other >  How to clean (delete) a black frame/boundaries/countour at the edges of the image after adaptive thr
How to clean (delete) a black frame/boundaries/countour at the edges of the image after adaptive thr

Time:01-09

I applied adaptive gaussian thresholding to my .tif image, but the black frame (contour) on the edges was created. Can't understand why and how to delete.

I would be very grateful for your help! p.s. After cv2.threshold(img,127,255,cv2.THRESH_BINARY) there is no frame.

This is my original image:

enter image description here

tmp_img:
enter image description here

  • Related