I'm seeking help on extracting deposit profiles from images and using ANFIS models to plot corresponding profiles based on input parameters

1 view (last 30 days)
I'm working on a project to analyze images of deposits on a metal . I have 10 sample images and tried taken measurements of the deposit's width and height for each sample. I've trained two ANFIS models.Input for model is current & voltage and outputs are deposit's width and another model is deposit's height.
Now, I want to plot a profile that resembles the deposits in my sample images. However, I'm unsure about how to extract the profile of the deposit from the image and relate it to my ANFIS model. Given input to the model I need to get respective deposit profile plot in GUI. Can anyone help me on this ?
I have attached the sample image.I want that center part (deposits) alone to be plot in a graph

Answers (1)

Image Analyst
Image Analyst on 24 Mar 2025
I don't think 10 images is enough to train a neural network. Besides, this looks easy enough to use traditional image processing methods on, especially if you have a "perfect" sample that you can align your test sample with. Try imabsdiff.
  3 Comments
Image Analyst
Image Analyst on 28 Mar 2025
To get the height, I'd threshold it and use find to find the top and bottom row. Something like (untested)
mask = grayImage > someThreshold.
[rows, collumns] = find(mask);
topRow = min(rows)
bottomRow = max(rows)
Your trial code didn't seem to work with your sample 1 image. Can you attach some more that it works with?
I don't think you need to use edge detection. I think you can get the weld by thresholding either the gray scale image or the image processed by stdfilt. Do you just need the overall max width and height, or do you need the actual shape of the weld blob?

Sign in to comment.

Categories

Find more on Agriculture in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!