필터 지우기
필터 지우기

Errors Using Pic2Points

조회 수: 3 (최근 30일)
Ivy Kwok
Ivy Kwok 2024년 1월 23일
댓글: Ivy Kwok 2024년 1월 24일
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일
  댓글 수: 3
Walter Roberson
Walter Roberson 2024년 1월 23일
The easiest way is to install it using Add-On Explorer.
Ivy Kwok
Ivy Kwok 2024년 1월 24일
Woohoo, it worked! Thank you so much for your help! :')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by