I have an image of an animal (mantis shrimp) along with seeding particles (white dots). I want to mask out the animal only and change the background into white. I will use the resultant image as a mask in PIV analysis.
I have tried intensity thresholding, and minimum, median filters but they are of less help because the animal tail has hair with low intensity value and as a result it is also deleted with white dots. I think thresholding based on intensity value doesn't work.
I can simply crop the animal by outlining it but because I have hundreds of images this method is pointless.
I attached the original image along with the desired one done through outlining by hand.