I have an image problem with the image using the save button "Error using images.int​ernal.pars​eNonString​InputsEdge​"

1 view (last 30 days)
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!