Reputation:
I need to process pictures where textured areas appear, such as cloth.
Assuming that I know a region of interest that contains a sample of the texture, I need to delineate more precisely the whole area having that texture.
The scale of the texture can vary from microtexture to large patches, but a partial solution would be better than none.
What are the relevant tools that I could use in OpenCV ?
For the sake of the illustration (I don't really expect such an accuracy):
The original images (sorry, I lost the first and put another):
Upvotes: 4
Views: 217
Reputation: 17895
Multi-colour image segmentation seems to work, so potentially, if an environment allows, it might be easier to use known texture to extract colours and do the segmentation. Here is an example:
The result is pretty accurate. A custom implementation of multi-colour segmentation based on delta E were used. Common approach works and it also allows to highlight some internal details.
The shape is not ideal, there are some artefacts, so potentially a better result can be achieved.
BTW, I'd suggest to improve input data quality. I used to work with 4K video frames because details really matter. More examples can be found on youtube channel.
Upvotes: 1