I have an image problem with the image using the save button "Error using images.internal.parseNonStringInputsEdge"
1 view (last 30 days)
Show older comments
I want to save the image with the save button that can immediately change the size of the image
citra = handles.image;
citraGray = rgb2gray(citra);
a = imresize(citraGray,[20 20]);
tresH = 0.08;
citraSobel = edge(citraGray,a,tresH,'sobel');
%----------------------
global frame
[nama_file_simpan, path_simpan]=uiputfile ({'*.jpg','JPEG Image (*.jpg)';},'Menyimpan Citra');
if isequal(nama_file_simpan,0) || isequal(path_simpan,0)
msgbox('Image is saved', 'Foto_Editor')
else
F=getframe(handles.axes1);
img=frame2im(F);
imwrite(img, fullfile(path_simpan,nama_file_simpan),'jpg');
end
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!