How to get the coordinates inside the polygon
Show older comments
Hi, I have an enclosed polygon and a coordinates in a form of matrix, is it possible to extract a set of coodinates that only lies inside the polygon? Any help is much appreciated.
Answers (1)
Bruno Luong
on 27 Aug 2022
Edited: Bruno Luong
on 27 Aug 2022
2 votes
Pass the coordinates of the pixels to this function, it returns true for pixel inside the polygon.
1 Comment
Clarisse Fajarito
on 28 Aug 2022
Categories
Find more on Elementary Polygons 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!