How to convert pixel coordinate(returned back by imread function) to Cartesian x-coordinate and y-coordinate.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am using matlab version 7.10.0.499 (R2010a). I am taking input as .jpg file to imread function, I am getting the pixel coordinates. I need a function which can convert pixel coordinate to Cartesian x-coordinate and y-coordinate. A=imread('file.jpg'); How to convert value present in A matrix into Cartesian x-coordinate and y-coordinate.
3 Commenti
dpb
il 20 Ago 2015
That would be returning the 'xdata' and 'ydata' properties from the figure. See
doc get % and set and friends
doc axes % for axes properties
Risposte (1)
Image Analyst
il 19 Ago 2015
See my attached spatial calibration demo to convert pixels into real world distances.
0 Commenti
Vedere anche
Categorie
Scopri di più su Geometric Transformation and Image Registration in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!