Determining if a feature is isolated and how many neighbors it has - currently there is a pull request for this in the TINT theme, but not in tobac v1.0 theme. I suggest adding this in the segmentation_timestep function in the mask_segmentation file.
I've written a solution using dilation - where the feature shape is dilated by a user specified value and the number of neighbors falling within this dilated feature are counted and an isolation flag is raised (if no neighbors are found).
I can add this as a pull request but am not sure if it is better to add it in the v2.0 branch under the tobac theme or within the main branch.
Determining if a feature is isolated and how many neighbors it has - currently there is a pull request for this in the TINT theme, but not in tobac v1.0 theme. I suggest adding this in the segmentation_timestep function in the mask_segmentation file.
I've written a solution using dilation - where the feature shape is dilated by a user specified value and the number of neighbors falling within this dilated feature are counted and an isolation flag is raised (if no neighbors are found).
I can add this as a pull request but am not sure if it is better to add it in the v2.0 branch under the tobac theme or within the main branch.