masks#

arte.math.masks.circular_mask(size, center=None, diameter=1.0, obstruction=0.0)#

Creates a circular mask for size*x*size elements, where elements whose distance from center is higher than ob/2 and smaller than diameter/2 are set to one, and all others at zero. Both diameter and obstruction are in percentage (0..1), where 1 is the full aperture. center should be a sequence of two coordinates. If omitted or None, it will be set to [size/2,*size/2*].

See also arte.types.mask for the class CircularMask and derived classes