Problem with SegmentTool.
이전 댓글 표시
Dear all,
I have a problem (maybe small problem, but I can´t handle it) with SegmentTool. I downloaded zip here https://www.mathworks.com/matlabcentral/fileexchange/38484-segmenttool--an-interactive-gui-for-segmenting-images and I unzipped this folder. But when I write to the Command Window SegmentTool, so I see this error:
Undefined function 'audioread' for input arguments of type 'char'.
Error in SegmentTool (line 133)
[wav,freq] = audioread('notify.wav');
How do I resolve this? Thank you for your answers.
채택된 답변
추가 답변 (1개)
Image Analyst
2016년 9월 1일
You must have a really old version. Try wavread() instead:
[wav,freq] = wavread('notify.wav');
댓글 수: 10
Veronika
2016년 9월 5일
Image Analyst
2016년 9월 5일
What do you want to do with it? Geoff and I don't know. You didn't tell us. Why are you reading it in in the first place?
Veronika
2016년 9월 5일
Image Analyst
2016년 9월 5일
What image? You know you're reading in a wav file, which is a sound file, don't you?
Veronika
2016년 9월 5일
Image Analyst
2016년 9월 5일
Well evidently it tries to load and play a sound file. So either replace it with waveread() like I said, or just replace it with
beep();
or simply comment it out. Let me know if that solves the problem.
Geoff Hayes
2016년 9월 5일
Veronika - for some reason, the author of the SegmentTool has included a wave file for notifications (a message indicating that something is happening). If playing this sound is still causing you a problem, then I would remove the three or four lines corresponding to it from the code.
I see that you have started a new question at http://www.mathworks.com/matlabcentral/answers/301959-how-to-start-segmenttool-and-import-image which may explain more clearly what problems you are having with this code.
Veronika
2016년 9월 5일
Image Analyst
2016년 9월 6일
Either you have it open in another program, or you have it saved in a place where you can't edit it, like under the Program Files folder somewhere. Move it to a folder where you do have permission.
Veronika
2016년 9월 6일
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!