fn_poly2mask

Contents

Syntax

mask = fn_poly2mask(xpoly,ypoly,m,n)
mask = fn_poly2mask(poly,sizes)

Description

Do the same as Matlab poly2mask without needing the Image Toolbox
Except use different convention!! I.e. x = first coordinate, y = second
coordinate.

Source

Thomas Deneux

Copyright 2015-2017