Errors Using Pic2Points
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ivy Kwok
el 23 de En. de 2024
Comentada: Ivy Kwok
el 24 de En. de 2024
Hi, there! I am trying to overlay coordinate points on my groundwater site map, and I keep getting errors when trying the demo package from https://www.mathworks.com/matlabcentral/fileexchange/54799-convert-image-pixels-to-xy-coordinates. After downloading the demo files and running, this is what I get –
Im = imread('./Images/Plot.png');
CoordinateMatrix = pic2points(Im);
scatter(CoordinateMatrix (:,1), CoordinateMatrix (:,2),'.');
Error using imread>get_full_filename
File "./Images/Plot.png" does not exist.
I tried importing the Plot.png file into MATLAB and updating to that file path, but then it told me –
>> Im = imread('/Users/ivy/Documents/MATLAB/Plot.png');
CoordinateMatrix = pic2points(Im);
scatter(CoordinateMatrix (:,1), CoordinateMatrix (:,2),'.');
Unrecognized function or variable 'pic2points'.
Thanks so much in advance!
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de En. de 2024
pic2points() needs to be installed from the File Exchange; https://www.mathworks.com/matlabcentral/fileexchange/54799-convert-image-pixels-to-xy-coordinates
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!