Major changes to mask.bubbles_mask_nonzero():
- Now supports non-integer products of
sigmaandmax_sigma_from_nonzero. The previous version assumed thatsigma * max_sigma_from_nonzerowould always produce an integer. - Bubble locations are now sampled from pixels identified via binary dilation, with random noise between
-0.5and0.5around the centre of the pixel. max_sigma_from_nonzerocan now be an array of values, of the same length assigma, for bubble-specific constraints.max_sigma_from_nonzerocan be0ornp.inf.
Minor changes:
mask.bubbles_mask_nonzero()now passes**kwargstomask.bubbles_mask()andbuild.build_mask()mask.bubbles_mask()now passes**kwargstobuild.build_mask()build.build_mask()now has defaults ofscale=Trueandsum_merge=False. These defaults were originally set inmask.bubbles_mask()andmask.bubbles_mask_nonzero().- Added timing demo to
examples.py, comparingbubblemask's density method to a convolution method. - Improved all documentation, including using
numpystyle - Arguments
scaleandsum_merge, which should now be passed as**kwargs, have been removed from documentation formask.bubbles_mask_nonzero().