Farzam
(Farzam)
July 2, 2024, 10:14pm
1
Hi everybody, I need to modify the border of an image, like reducing the stroke from this image. Would you mind helping me with that? A sample has been uploaded.
Sample:
Ps: I used torchvision.transforms.Pad
class , but that wasn’t what I wanted.
johnnv1
(João Gustavo A. Amorim)
July 3, 2024, 2:45am
2
Hey, I believe what you want/needs here is the morphological operation erosion (Mathematical morphology - Wikipedia )
You can achieve that with pytorch using kornia – Kornia docs erosion morph (kornia.morphology - Kornia )
Kornia tutorials morph (Kornia - Introduction to Morphological Operators )
1 Like
Farzam
(Farzam)
July 3, 2024, 4:06am
3
Thank you for your comprehensive reply, I’ll take a look at all of them!