I have an image of pellets (balls). I need to find part of image, where balls are.
My testing image looks like this:
I have an idea using wavelets. In 1D, ball could be quite well recognized by Continuou wavelet transform.
Here is example 2D signal of ball:
Here is Continuous wavelet transform of this signal using Morlet wavelet:
And here is just very simple threshold of CWT:
This works quite well in 1D signal analysis, so I was thinkink if I could use 2D CWT on image. Does something like 2D continuous wavelet transform exist? If it does, is there some implementation (C++)? Can I use it to find area covered by balls?
Otherwise, could I somehow use Discrete wavelet transform? I don't think so, but I haven't understood DWT very well yet. So I would be grateful for your advice.
Do you have any other ideas?
Thank you for your time and help.