Errors Using Pic2Points

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!

 采纳的回答

Walter Roberson
Walter Roberson 2024-1-23

1 个投票

3 个评论

Thanks so much! Is that this? I had downloaded it from the File Exchange but am not sure how to install it. Apologies that I'm very new to all of this!
The easiest way is to install it using Add-On Explorer.
Woohoo, it worked! Thank you so much for your help! :')

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Downloads 的更多信息

产品

版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by