how to resolve read only permission error?

조회 수: 8 (최근 30일)
hp
hp 2018년 12월 12일
편집: Image Analyst 2018년 12월 12일
Error using imread (line 348)
Can't open file
"G:\matlab2013\Crack\bin\W2-SET\7*.jpg"
for reading;
you may not have read permission.
Error in dupliactetrailQUERY_by_IMAGE_CITYBLOCK_RT (line 104)
returnedImage = imread(str_name);
  댓글 수: 2
KSSV
KSSV 2018년 12월 12일
YOu need to go to the folder and give permissions to the folder.
Image Analyst
Image Analyst 2018년 12월 12일
That's not it. See my Answer below.

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

답변 (1개)

Image Analyst
Image Analyst 2018년 12월 12일
편집: Image Analyst 2018년 12월 12일
Sorry, but the guess at the cause of the error is not correct. The real reason for the error is that imread() cannot take wildcard file patterns as an input string. You need to give the name of just one file - no * asterisk.
If you need to read multiple files, especially ones in subfolders, see imageDataStore().

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by