You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
""" _generate_se!(se)Generate a structuring element by leveraging symmetry (mirroring and inverting) a given initial structuring element."""function_generate_se!(se)
se .= se .|reverse(se; dims=1)
se .= se .|reverse(se; dims=2)
se .= .!se
returnnothingendfunctionse_disk50()
se = [sum(c.I) <=29for c inCartesianIndices((99, 99))]
_generate_se!(se)
return se
end
make_landmask_se = se_disk50
functionse_disk4()
se =zeros(Bool, 7, 7)
se[4, 4] =1returnbwdist(se) .<=3.6endfunctionse_disk20()
se = [sum(c.I) <=11for c inCartesianIndices((39, 39))]
_generate_se!(se)
return se
end
The text was updated successfully, but these errors were encountered:
Add se disk with radius = 20
Refactor se disk radius = 50
The text was updated successfully, but these errors were encountered: