- Find and tracking a green ball from images/frames in a video in a MATLAB demo.
- Creating a GUI with GUIDE
- Open and display an image file in the GUI
- Save a current image
- MATLAB GUI for changing image brightness
- MATLAB GUI for measuring image quality using PSNR and RMSE metrics
im = imread(filename);
imagesc(im);
%Create a handle to manage the image im
handles.im = im;
%Update handles structure/Save the change made to the structure
guidata(hObject, handles);
%Get the image im for manipulation
im = handles.im;
%Save the image im
[filename,pathname] = uiputfile( ...
{'*.jpg', 'JPEG Image File'; ...
'*.*', 'All Files (*.*)'}, ...
'Save current image as');
if (filename~=0)
var=strcat(pathname,filename);
imwrite(im,var);
end
im = handles.im;
%Save the image im
[filename,pathname] = uiputfile( ...
{'*.jpg', 'JPEG Image File'; ...
'*.*', 'All Files (*.*)'}, ...
'Save current image as');
if (filename~=0)
var=strcat(pathname,filename);
imwrite(im,var);
end
No comments:
Post a Comment