A numeric value indicating the size of the distance
transform mask. It can be any of the following:
0:used only to indicate the Felzenszwalb algorithm when
distance_type = "L2".
3 (the default):3x3 mask.
5:5x5 mask.
target
The location where the results should be stored. It can take 3
values:
"new":a new Image object is created and the results
are stored inside (the default).
"self":the results are stored back into image (faster but
destructive).
An Image object:the results are stored in another
existing Image object. This is fast and will not replace the
content of image but will replace that of target. Note that
target must have the same dimensions as image, must have a
single channel, and its bit depth must be either "8U" or "32F".
Value
If target="new", the function returns an Image
object. If target="self", the function returns nothing and modifies
image in place. If target is an Image object,
the function returns nothing and modifies that Image object in
place.