Hello,
I want to overlay two images, the one of hair and the one of skin. When I try this code:
blended = Image.blend(im1, im2, alpha=0.2) I get the result in Image 3 which is different from the result I am looking for (in the last image). How can I do that correctly?
This question doesn’t seem to be PyTorch-specific, so you might get a better answer in an image processing discussion board. In any case, I would check if morphological dilation and erosion could help narrowing down the mask a bit.