CS100: Into to Computer Science. Image Processing in MatLab. MatLab is a powerful tool to manipulate graphics and images. Prepared by Fred Annexstein University of Cincinnati Some Rights Reserved. WORKING WITH IMAGES in MatLab. Basic Image functions: Reading: img1=imread('image1.jpg');
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Basic Image functions:
Recall that Last time we did an Exercise: Find 2 images online and add them together.
You only needed to crop them to the same size.
>> [rows, cols, colors]= size(img)
% Increase the number of rows
>> stretchfactor = 1.5
>> rowVec= linspace(1,rows,stretchfactor*rows);
% Decrease number of columns
>> stretchfactor = 0.75;
>> colVec= linspace(1,cols,stretchfactor*cols);