Detect almost any overlap of pixel and mask (#828)
Exact algorithm for rectangular mask; sufficient approximation for ellipse and polygon.
This resolves #828 (closed).
Exact algorithm for rectangular mask; sufficient approximation for ellipse and polygon.
This resolves #828 (closed).