I am trying to use the Allen Cell Structure Segmenter on some slide images. The segmenter works and I am able to navigate it fairly well. I am trying to add in a scikit image function ‘clear_border’ in order to remove objects on the edge of the image. In previous code this was coupled with ‘label_image’ from scikit. I have tried a couple configurations, using one or both, moving it to various points in the code. But nothing seems to give me the output I am looking for. The typical outcome is that if I can get it to work it just clears the entire image.
Any ideas how I could fix this issue or use another function to do a similar operation?