Ask Your Question

Revision history [back]

You can try :

  1. blur all your image
  2. apply DistanceTransform to your mask
  3. use Addweighted with original and blur image with a weight function of distance transform results (may be a threshold like 20 )