Restoration#

Restoration algorithms clean up a field – removing noise, resampling, smoothing – without changing what it physically represents.

Denoising#

  • TVD / tvd() – total-variation denoising; preserves sharp interfaces (plume edges) while removing speckle. split_bregman_tvd() and the "heterogeneous bregman" method allow a spatially varying weight.

  • H1_regularization() – smoother, cheaper H1 (Tikhonov) regularization.

  • Median – median filtering.

import darsia

clean = darsia.tvd(img=noisy, method="isotropic Bregman",
                   weight=0.03, max_num_iter=100)

Resampling and averaging#

Binary clean-up#

BinaryFillHoles, BinaryRemoveSmallObjects and BinaryLocalConvexCover tidy the masks produced by segmentation and thresholding.

See also#