Fitting to multiple lines to measure center of a cross in a photo
Afficher commentaires plus anciens
Hi,
I have a set of black and white pixels. By looking, you can tell the white pixels make up a cross. I would like to find the equations of the 2 best fit lines, so that I can find the intersection and measure the center of the cross to sub-pixel accuracy. How would one best fit one dataset to two different equations?
I have also played around with Hough Transform based line finding, but it does not seem to "best fit" the line; namely my hough results are lines that are not well centered.
-Jen
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 5 Juin 2013
0 votes
Can you upload your picture to http://snag.gy so we can see it. I'm wondering if the cross is tilted. If it's not tilted, it's simpler.
What about just finding the centroid of the cross, or the weighted centroid? I'm not sure finding where lines cross would be any more accurate than that, at least for crosses that are made up of straight bars.
1 commentaire
John
le 5 Juin 2013
Catégories
En savoir plus sur Subspace Methods dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!