I’m trying to remove the small objects outside of my main object as seen here in this picture: trabecular_mask.tiff (207.2 KB)
I’ve been using:
trabecular_mask = remove_small_objects(trabecular_mask, min_size=400)
But nothing changes, changing “min_size” doesn’t seem to do anything.
I’ve used the function previously in my code with good results and I’m confused as to why it isnt working now. I’m thinking I’m doing something stupid due to tiredness!
Any help would be much appreciated.