I have been looking for a long time for code to do image segmentation by texture. There seems to be many papers but I cannot find any code. Has anyone come across any code to do this? Either in opencv or any other?
I found some source code here.
http://www.iro.umontreal.ca/~mignotte/ResearchMaterial/
It seems likely that this will satisfy my need for source code for image segmentation by texture for the moment.
Just made a repo with code https://github.com/Smorodov/gabor_segmentation
The code is rather old, so may be it will be needed to small modifications to openCV's changes.
It uses kmeans to automatically segment texturrs by clustering. If you want to use different classifier, you can check, pointsclassifier.cpp example in standaed opencv's examples.
Sample of segmented image:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With