convert line to pixel coordinate
Show older comments
Hi,
if i have a path consist of six points , and i have obstacle, what i want is to put nodes in all the path to count the minimum distance between
the obstacle and the path

4 Comments
darova
on 3 Aug 2019
I showed distance with green color on the image. Am i correct? Is that all you want?

mohammed alany
on 3 Aug 2019
darova
on 3 Aug 2019
What about pdist2()?
mohammed alany
on 3 Aug 2019
Accepted Answer
More Answers (1)
Image Analyst
on 3 Aug 2019
0 votes
Use bwdist().
9 Comments
mohammed alany
on 3 Aug 2019
darova
on 3 Aug 2019
I can show you.
mohammed alany
on 3 Aug 2019
darova
on 3 Aug 2019
What kind of nodes do you like more?

mohammed alany
on 3 Aug 2019
darova
on 3 Aug 2019
You mean equal distance between nodes?
Image Analyst
on 3 Aug 2019
If you don't have that image, then what do you have? A list of (x,y) coordinates of where the orange spots are?
mohammed alany
on 3 Aug 2019
Categories
Find more on Image Preview and Device Configuration 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!
