scipy.ndimage.

形態學拉普拉斯#

scipy.ndimage.morphological_laplace(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0, *, axes=None)[原始碼]#

多維形態學拉普拉斯算子。

參數:
inputarray_like

輸入。

sizetuple of ints

用於數學形態學運算的平面且完整結構元素的形狀。如果提供 footprintstructure,則為選填。

footprintarray of ints, 選填

用於形態學運算的平面結構元素的非無限元素的位置。

structurearray of ints, 選填

用於形態學運算的結構元素。structure 可以是非平面結構元素。structure 陣列將偏移量應用於鄰域中的像素(偏移量在膨脹期間是加法的,在侵蝕期間是減法的)

outputndarray, 選填

可以選擇性地提供輸出陣列。

mode{‘reflect’,’constant’,’nearest’,’mirror’, ‘wrap’}, 選填

mode 參數決定如何處理陣列邊界。對於 ‘constant’ 模式,邊界外的值設定為 cval。預設值為 ‘reflect’。

cvalscalar, 選填

如果 mode 為 ‘constant’,則填充輸入邊緣外的值。預設值為 0.0

originorigin, 選填

origin 參數控制濾波器的位置。

axestuple of int 或 None

要套用濾波器的軸。如果為 None,則沿所有軸篩選 input。如果提供了 origin 元組,則其長度必須與軸的數量相符。

返回:
morphological_laplacendarray

輸出