MATLAB: Image Analysis for curve in strong noise

curve fittingimage analysisimage processingtiff

Dear Matlab Community,
I am not new to programming image processing, but I have done other projects in Matlab with analyzing large matrices of data.
My current goal is to extract an equation of a curve from an image that has strong noise.
The image is a .TIF grayscale 1200×1600 uint16. It has numerous particles populating it with high intensity light and a fish in it.
I want to extract the curve of the fish. If someone could help me figure out how to remove the high intensity particles, it would help a ton.
I am currently trying to blur the image in the hopes that their small pixel count will remove many of them. Then I intend to use edge finder to draw the edge of the fish combined with Fourier transform functions to end up with the set of peaks.
-Tom

Best Answer

You say you're not new to image analysis, but it kind of sounds like you are. Have you tried thresholding? But the first step would be to get a good photo to begin with rather than try to fix up a bad one. You don't say what the lights are. Are they in the water or out of the water? Are they bioluminescent? Can you put polarizers in front of the lights and a rotatable polarizer in front of the camera lens? If you can't get rid of the lights then the best you can do is to try to remove them. Try to identify them by intensity, size, shape, or whatever. Then mask them out, if you want to or need to, and replace them with black or the surrounding image or something. You wouldn't want to blur them because that would also blur your outline of the fish and there are better ways of getting rid of bright spots in your image. Not sure why getting rid of bright spots would be necessary though - how do they affect the image of the fish? Anyway, then find the fish edges. I'm not sure what the equation of a curve for a fish would mean or how you'd calculate it, and what the Fourier transform has to do with anything and why you expect to get (somehow) a set of peaks. I'm sure a photo would illuminate your situation. Please upload one somewhere such as to tinypic.com.