how to resolve read only permission error?

8 Ansichten (letzte 30 Tage)
hp
hp am 12 Dez. 2018
Bearbeitet: Image Analyst am 12 Dez. 2018
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 Kommentare
KSSV
KSSV am 12 Dez. 2018
YOu need to go to the folder and give permissions to the folder.
Image Analyst
Image Analyst am 12 Dez. 2018
That's not it. See my Answer below.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 12 Dez. 2018
Bearbeitet: Image Analyst am 12 Dez. 2018
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().

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by