I've been puzzled with this problem for quite a lot time. I went through a lot of topics and didn't find out exactly what I need. So I started this question.
This is the test image I need to extract features from:
And The final product I want to have is something like:
I have tried:
- Threshold the image and segment out the darker region and tried to use adaptive thresholding, it can segment out the wanted feature (thin lines), but the unmasked edges of the darker region will also be included. And since one of them is connected to one of the lines, I wasn't able to separate them apart (tried watershed segmentation).
- I have tried different types of filters by themselves but wasn't able to segment out the feature (because the features are darker than the white area but way brighter than the background, and there are the gradually changed areas which are hard for me to sift out).
Any suggestions would be deeply appreciated.