Cropping a (pixel) array with a polygon shape
in
Programming Questions
•
1 year ago
Hi there, I'm looking for a way to crop a pixel array using a polygonal shape.
I've been thinking of creating a pixel-array containing a binary image of the polygon shape and applying it in a conjunction operation with the source pixel array.
Maybe there's a more efficient/smarter way of doing this
?
1