underbuild
underbuild is reconstruction by dilation, it is an alias for mreconstruct when op=dilate.
using ImageMorphology
using TestImages
using ImageBase
using ImageShow
img = restrict(Gray.(testimage("blob")))
nothing # hide
underbuild accepts two images as inputs: marker and mask.
out = underbuild(img .- 0.2, img)
mosaic(img, out; nrow=1)
See also
underbuild is the dual operator of overbuild in the following sense:
marker, mask = rand(32, 32), rand(32, 32)
complement.(underbuild(marker, mask)) == underbuild(complement.(marker), complement.(mask))
false
For more details, please refer to mreconstruct.
This page was generated using DemoCards.jl and Literate.jl.