Images and M ATLAB. Digital Image Processing. Image Basics w.r.t. Matlab Image Display. Matlab and Images. MATLAB is a data analysis software package with powerful support for matrices and matrix operations Command window Reads pixel values from image Creates a figure on the screen
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.
Images and MATLAB
Digital Image Processing
>> figure, imshow(‘trees.tif’)
>> em = imread(‘trees.tif’);
>> figure, imshow(em)
Ch2-p.25
>> [em, emap] = imread(‘trees.tif’);
>> figure, imshow(em, emap)
Ch2-p.26
Ch2-p.28
Ch2-p.28
Ch2-p.29
Ch2-p.29
These images are created using the Joint PhotographicsExperts Group compression method
A very general format that supports different compression methods, multiple images per file, and binary, grayscale, truecolor, and indexed images
Ch2-p.30
Ch2-p.30
Ch2-p.30
Ch2-p.31-32
Ch2-p.32
Ch2-p.33
Ch2-p.33
Ch2-p.34
Ch2-p.34-35
Ch2-p.35
Ch2-p.35-36
Ch2-p.36-37
Ch2-p.37
Ch2-p.37-38
e.g.
Ch2-p.38
Ch3-p.41
Incorrect due to irrelevant colormap employed by the image() function.
Ch3-p.42
Basics of Image Display (4/6)
Ch3-p.43
Basics of Image Display (5/6)
Ch3-p.43
Basics of Image Display (6/6)
Ch3-p.43
Ch3-p.44
Ch3-p.44
>> imshow(cl)
>> imshow(uint8(cl))
Ch3-p.47
imresize(imresize(x, factor, ‘nearest’), factor, ‘nearest’);
(Since 255/3 = 85)
>> D = [0 24; 36 12];
>> r = repmat(D, 128, 128);
>> x = double(x);
>> q = floor(x/37);
>> x8 = q+(x-37*q>r);
>> imshow(uint8(37*x8))
>> D = [0 56; 84 28];
>> r = repmat(D, 128, 128);
>> x = double(x);
>> q = floor(x/85);
>> x4 = q+(x-85*q>r);
>> imshow(uint8(85*x4))
3.6 Quantization and Dithering
Ch3-p.59