Sunday, November 6, 2011

Image processing with MATLAB


  1. Find and tracking a green ball from images/frames in a video in a MATLAB demo.
  2. Creating a GUI with GUIDE
  3. Open and display an image file in the GUI
  4. Save a current image
  5. MATLAB GUI for changing image brightness
  6. MATLAB GUI for measuring image quality using PSNR and RMSE metrics
filename = uigetfile('*.jpg','Select an image file');
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

No comments:

Post a Comment

Mounting USB drives in Windows Subsystem for Linux

Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...