How does graydist work?
2 views (last 30 days)
Show older comments
What does each element of the gray dist transfrom mean with repect to the imputs? How is each element calculated. I think i have use case for a weighted distance transfrom, but I cant understand the function.
% Please note this is part of the example included in the MATLAB
% documentation.
A= magic(3)
A = 3×3
8 1 6
3 5 7
4 9 2
T1 = graydist(A,1,1)
T1 = 3×3
0 4.5000 8.0000
5.5000 6.5000 8.5000
9.0000 11.5000 10.0000
Prework,
- I double checked Digital Image Processing By Rafael Gonzalez. The book only discusses the binary distance transfrom. I understand the binary distance transform.
- I searched google/ youtube.
- I searched for the cited article but my company does not have access to it.
- I looked at the algorithm section. The formula has no disciption of the variables.
0 Comments
Answers (0)
See Also
Categories
Find more on Image Processing and Computer Vision 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!