estimate_alpha_sm(
image,
trimap,
return_foreground_background=False,
trimap_expansion_radius=10,
trimap_expansion_threshold=0.02,
sample_gathering_angles=4,
sample_gathering_weights=(3.0, 2.0, 1.0, 4.0),
sample_gathering_Np_radius=1,
sample_refinement_radius=5,
local_smoothing_radius1=5,
local_smoothing_radius2=5,
local_smoothing_radius3=5,
local_smoothing_sigma_sq1=None,
local_smoothing_sigma_sq2=0.1,
local_smoothing_sigma_sq3=None)