Hi everyone,
I want to extract the foreground of the pedestrian and regenerate the mask according to the extracted foreground object? In other words, remove the background of the pedestrian, and from that extracted foreground generate the new mask.
End result should look similar to this image (the example is not perfect but just to get the idea)
from this extracted image there will be a new mask.
Thank you in advance