'**SUMMARY**
This method returns the distance, in pixels, from the nearest image edge.
**RETURNS**
The integer distance to the nearest edge.
**EXAMPLE**
>>> img = Image("../sampleimages/EdgeTest1.png")
>>> b = img.findBlobs()
>>> b[0].distanceToNearestEdge()'

def distanceToNearestEdge(self):

    w = self.image.width
    h = self.image.height
    return np.min([self._mMinX, self._mMinY, (w - self._mMaxX), (h - self._mMaxY)])
