permission error while using imwrite () on transformed image
Afficher commentaires plus anciens
i have multiple images in multiple folders. i have perform a deformation on those images and trying to save those images in same folders under the name transform image using imwrite(). but i am getting write permission error . Can anyone help me with this. Please find my code attached.
Réponses (1)
Image Analyst
le 9 Juil 2016
0 votes
Don't use "image" as the name of your image variable - it's an important built-in function. What is the name of your file you are trying to write? If you comment out the imwrite() line, does the script run fine?
4 commentaires
prashant singh
le 9 Juil 2016
Modifié(e) : prashant singh
le 9 Juil 2016
Image Analyst
le 9 Juil 2016
Paste the contents of everything that appears in the command window.
prashant singh
le 9 Juil 2016
Image Analyst
le 9 Juil 2016
You can get rid of a lot of the warnings by not calling mkdir if the folder exists:
Replace
mkdir(dataFolderName);
by
if ~exists(dataFolderName, 'dir')
mkdir(dataFolderName);
end
then you'll have to put the imwrite back in so I can see what the error for that is. Perhaps you can't write to the folder, like it's on a readonly drive or need admin permission or something.
Catégories
En savoir plus sur Images dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!