How to get the coordinates inside the polygon

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
Bruno Luong on 27 Aug 2022
Edited: Bruno Luong on 27 Aug 2022
Use polyshape class or
Pass the coordinates of the pixels to this function, it returns true for pixel inside the polygon.

Categories

Products

Asked:

on 27 Aug 2022

Commented:

on 28 Aug 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!