myimagelib.myImageLib.matlab_style_gauss2D

myimagelib.myImageLib.matlab_style_gauss2D(shape=(3, 3), sigma=0.5)

Generate a 2D gaussian mask - should give the same result as MATLAB’s fspecial('gaussian',[shape],[sigma]).

Parameters
  • shape (tuple) – shape of the mask, default to (3,3)

  • simga – standard deviation of the mask, default to 0.5

Returns

a gaussian mask

Return type

2d array