tobac
tobac copied to clipboard
Isolation metric in tobac
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.
I think this is a great idea. I think we would certainly be receptive to a PR for this. I think getting this into tobac 1.x would be extremely helpful as well given the timeline for a v2.0 release. I'd encourage you to do the PR into the dev
branch, and we can then pull the changes into the v2.0-dev
branch when it's finished (and we add in the 3D/PBC support that we're working on here at CSU).