How to apply distance transform on labelled matrix
Show older comments
I have got a labelled matrix and want to apply distance tranform on the diffent different labels in the matrix. How can it be done in matlab?
Thanks
4 Comments
Walter Roberson
on 20 Jul 2020
Edited: Walter Roberson
on 20 Jul 2020
When you apply the distance transform, are the regions labeled with other labels to be considered unpassable or passable? Or, for example, are regions with a numerically greater label number to be unpassable while regions with numerically lower label number are to be considered passable ?
Do all of the results need to somehow be synthesized into one matrix, or can there be one output for each distinct label?
Rizwan Khan
on 21 Jul 2020
Walter Roberson
on 21 Jul 2020
is this https://ieeexplore.ieee.org/document/885672
Rizwan Khan
on 21 Jul 2020
Answers (1)
Anmol Dhiman
on 20 Jul 2020
0 votes
Hi Rizwan,
Regrds,
Anmol Dhiman
3 Comments
Walter Roberson
on 20 Jul 2020
The user specifically talks about a label matrix. Those are not binary (logical): they are numeric matrices in which each unique value defines a different region (except that 0 is always background.)
Image Analyst
on 20 Jul 2020
That's why it doesn't make sense. Why on earth would you even want to try to do a distance transform on a labeled image? What would even be the formula for distance in that case? And what would he do with the result? I think this is a case of a user thinking he wants something, but he really doesn't want that, he just doesn't know it yet.
Rizwan Khan
on 21 Jul 2020
Categories
Find more on Axis Labels in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
