How to find the inner distance between the 2 white lines
Afficher commentaires plus anciens
Hi,someone can give me a hand to make a script related to the problem?
Practically ,I want to get the distance column by column from the lowest white border of the upper part to the highest white border of the lower part.
I thank you in advance.

1 commentaire
Image Analyst
le 17 Jan 2021
There are several ways to solve this. Do you want a vector of gaps (one gap width for every column), OR the average height (which actually doesn't need you to determine the gap on a column-by-column basis believe it or not).
But make it easy for us to help you, not hard. Attach the actual image either in a PNG file or a .mat file. We don't want the screenshot with tick labels, tick marks, surrounding gray background, etc. If you give all all that junk, it makes it hard for us because we need to take several steps to get rid of them and get down to the actual image.
Réponse acceptée
Plus de réponses (1)
Matt Gaidica
le 27 Jan 2021
1 vote
I'm not sure this is entirely correct, but you had things improperly placed.
6 commentaires
Francesco Muoio
le 27 Jan 2021
Francesco Muoio
le 28 Jan 2021
Modifié(e) : Francesco Muoio
le 28 Jan 2021
Matt Gaidica
le 28 Jan 2021
This was explained above. Compile all the data in your loop (e.g., using all_maxDist) then compute the mean at the end.
Francesco Muoio
le 28 Jan 2021
Matt Gaidica
le 29 Jan 2021
If you compile all of it in your main loop using all_maxDist then you just create a new figure for that variable. I would seek out some of the MATLAB tutorials on matrices and loops, this is fundamental stuff. I'm going to unsubscribe here, I think you need to start a new thread based on very specific problems you're having.
Francesco Muoio
le 30 Jan 2021
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
