What is an simple way to compute the overlap between an image and a polygon?

前端 未结 6 1246
清酒与你
清酒与你 2020-12-16 05:03

I have a closed non-self-intersecting polygon. Its vertices are saved in two vectors X, and Y. Finally the values of X and Y are bound between 0 and 22.

I\'d like t

6条回答
  •  遥遥无期
    2020-12-16 05:35

    I would suggest using poly2mask in the Image Processing Toolbox, it does more or less what you want, I think, and also more or less what youself and Salain has suggested.

提交回复
热议问题