Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image segmentation by texture? Cannot find any source code

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?

like image 328
Phil Avatar asked Sep 26 '26 20:09

Phil


2 Answers

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.

like image 164
Phil Avatar answered Sep 28 '26 20:09

Phil


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:

enter image description here

like image 41
Andrey Smorodov Avatar answered Sep 28 '26 21:09

Andrey Smorodov



Donate For Us

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