Question

I've spent a few days searching a for solution to my problem. I'm having a problem in finding peaks in one large matrix (approx. 1400 x 2700). I need to find the main peak and two smaller peaks - in the other words the three largest peaks in the picture. The matrix is the result of two FFTs of one fits image. The main problem is finding the size of the main peak. I managed to find the maximum of the central peak, but I can't find where is its end due to noise. Does anybody have any ideas or code samples I could look at to find a solution?

Update: And just one more related question: How can I effectively determine threshold ( noise ) in my matrix ? If I could successfully do that, finding peaks will be easy job?

Was it helpful?

Solution

If you don't care for the peak's size, you might try to apply a moving avarage filter on your matrix first. This way, you will lower your peaks' height on the one hand, but get rid of the noise on the other hand.

After applying the moving avarage filter you might look at the gradient of your matrix, in order to identify the peaks.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top