bwdist is computing image complement
Show older comments
I have a binary image and used bwdist on the image and the resulting image was the exact compliment of the original image. I thought that bwdist would return a grayscale image based (obviously) on the distance transform. The original image is essentially an asymmetric blob of white surrounded by black, so I expected bwdist to return the same shape but with blurred borders (I need the distance transform data so just blurring the edges is not an option). Am I just expecting something that this function does not do?
Accepted Answer
More Answers (0)
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!