Assuming there is a Region of Interest in an image (a blob/object), I want to create a distance based weighting of each pixels in that image such that pixels that are further away from the blob/object are given progressively less weight, while all pixels within the ROI/blob are given a constant, highest weight. Let's assume weights range from 0-1. Is there a name for this type of distance-based weighting? How can I implement this in Python Numpy ?

