Effacer les filtres
Effacer les filtres

Image segmentation on difficult background

6 vues (au cours des 30 derniers jours)
imagesegmentr
imagesegmentr le 6 Déc 2021
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 commentaires
DGM
DGM le 8 Déc 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.
imagesegmentr
imagesegmentr le 8 Déc 2021
First of all, Thank you! Very much appreciated that your willing to help me!
It is just the bar pattern. So the purple areas on your images are good, however for example for the first and second picture the bleu encircled areas are background (see my attachments). So actually i'm trying to segment the bar pattern out of this images (not in edges but really the area). The goal is to make a script to see where the patterns are interrupted. So the left image is whole, while the right one is interrupted. If i know the area's of the patterns i can see for example that in the right picture this area where such a bar pattern is, is smaller then the left one which indicates it's interrupted.

Connectez-vous pour commenter.

Réponses (1)

Akshat Dalal
Akshat Dalal le 18 Avr 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!

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by