MethodError: no method matching distance_transform(::Array{Bool,2})
Closest candidates are:
distance_transform(!Matched::AbstractArray{CartesianIndex{N},N}) where N at
Integer arrays also don’t work, the documentation site is down, so maybe someone knows what this function expects as input?
using Images, ImageView
A=rand(Bool, 500, 500)
B=feature_transform(A)
C=distance_transform(B)
imshow(C)
The first function finds the closest pixel, the second one actually computes distance map transform (as you want it i guess). Works the same in 3D.
Hope this helps,
Kirill