i am getting errors when i run code in this way

2 visualizaciones (últimos 30 días)
manjula yerva
manjula yerva el 2 de Feb. de 2016
Editada: Stephen23 el 2 de Feb. de 2016
Error using imwrite (line 459)
Can't open file "..\Dataset\Testing\stegoimage.bmp" for writing.
You may not have write permission.
Error in D:\ym phd work progress\paper 1
code\MR141022-Archana_Toolbox_V4.5CF\embeddedImg.p>embeddedImg (line 82)
Error in Main_Toolbox (line 25)
embeddedImg(secMsg,dictionary,coverImg);
my code is
for (line 459)
% Verify that the file can be written to.
fid = fopen(filename, 'a');
if (fid == -1)
error(message('MATLAB:imagesci:imwrite:fileOpen', filename));
else
% File can be created. Get full filename.
filename = fopen(fid);
fclose(fid);
end
*line 25*
case 3
disp('Embedding');
embeddedImg(secMsg,dictionary,coverImg);
line 81
imwrite(embmtx12,'..\Dataset\Testing\stegoimage.bmp');
figure,imshow(embmtx12),title('stegoimage');

Respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by