Image segmentation on difficult background
5 views (last 30 days)
Show older comments
Hi,
I'm trying image segmentation of the red striped zones in the picture. However, i always get an unclear segmentation of back- and foreground if i generalize one code for other pictures that lookalike. I've triend threshold (global and adaptive), region growing, k-means clustering, edge based (roberts, sobel, prewitt, canny, approxcanny, zerocross, log), texture based (using entropyfilt), the image segmenter app and the color segmentation app (HSV segmentation). However, for each of these i always got bad results if i made a script for one picture and then used it for other pictures that were a like f.e. make one for the first picture 'untitled1' and then use it for the second 'untitled3'. I'm trying to look for other ways but I'm kind off stuck... Is there any type of segmentation that I'm missing? Do you know a code that could work for these kinds of images?
Thanks in advance!
5 Comments
DGM
on 8 Dec 2021
Are you just trying to get everything other than the very tops of the V? Or is it just the part with the repeating bar pattern?
If it's just the bar pattern, is the blue part included? What about the part of the bar pattern in the top-left of the first picture?
I get they're annotations, but I don't understand conceptually what the common target is between the images.
Answers (1)
Akshat Dalal
on 18 Apr 2024
Hi,
I believe you've tried a broad range of conventional methods without satisfactory results, it might be worthwhile to explore deep learning based approaches, which has shown significant success in image segmentation tasks.
You can use semantic segmentation in MATLAB for your purpose. You can refer the following documentaion for further reference: https://www.mathworks.com/help/vision/ug/semantic-segmentation-using-deep-learning.html
You can also consider creating your own deep learning network that you can customize as per your input data. You can create your own custom training loops, loss functions, and optimization algorithms. This is particularly useful for adapting the network to the specific characteristics of your images.
You can refer the following documentation on how to create your own Deep Learning Network in MATLAB using the Deep Learning Toolbox: https://www.mathworks.com/help/deeplearning/ref/dlnetwork.html
Hope this helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!