# Is there a bug of InverseDistanceTransform?

This is a example of documentation about InverseDistanceTransform.

But this is my picture

But it doesn't work:

InverseDistanceTransform[pic, DistanceFunction -> EuclideanDistance]


• If you evaluate Max[ImageData[pic]] with the image in the documentation, you get 13, i.e. the values of the white pixels are larger than 1, namely the disk radii in pixels. I'm guessing your image contains values between 0 and 1, so InverseDistanceTransform creates disks with radii between 0 and 1 – Niki Estner Feb 6 '16 at 13:52
• Try e.g. InverseDistanceTransform[ImageMultiply[pic, 10]] to get disks with radius 10 – Niki Estner Feb 6 '16 at 13:54

If you evaluate Max[ImageData[pic]] with the image in the documentation, you get 13, i.e. the values of the white pixels are larger than 1, namely the disk radii in pixels. I'm guessing your image contains values between 0 and 1, so InverseDistanceTransform creates disks with radii between 0 and 1