how can i get a length of a barrel in an image using matlab

1 visualizzazione (ultimi 30 giorni)

Risposte (2)

Walter Roberson
Walter Roberson il 7 Ott 2015

Image Analyst
Image Analyst il 7 Ott 2015
See my attached spatial calibration demo. Of course you first need to put something of known length into the image, such as a yard stick or tape measure, so you can figure out how many pixels equal one centimeter.
  5 Commenti
Image Analyst
Image Analyst il 13 Ott 2015
You can get it in pixels but until you put an object of known length in there, such as a meter stick, you can't get the length in meters.
Walter Roberson
Walter Roberson il 13 Ott 2015
I did a search for those wavy "pavers" (paving stones). I could find stock images of them, but I could not find anyone who sells them in the time I looked -- all of the places that I checked that seemed to have them had something quite different. If we knew what the physical size of the stones was then we could use that to calibrate the perspective and so to calculate the size of the barrel.

Accedi per commentare.

Categorie

Scopri di più su Computer Vision Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by