Open jgostick opened 6 months ago
Here is list of functions which currently use strel
as a way to basically say whether you want to include diagonal connections:
region_size
trim_disconnected_blobs
trim_nonpercolating_paths
And here is a list of functions that use conn=<int>
to say the same thing:
trim_floating_solid
find_disconnected_voxels
fill_blind_pores
This may need a bit of thought...currently we accept
conns
in some places to mean an structuring element, and in other places we haveconns=4|8
in 2D andconns=6|26
3D. However, usually we just want to know if we should included diagonal connections or not. Having to generate a strel each time is a pain. And the 4|8, 6|26 is not dimension agnostic, so maybeconn='min'|'max'
is better?Also note that
nphase_border
actually hasinclude_diagonals
as an argument, which should be changed to whatever is decided.