# tutorial - C(1:3:end, :) = Max() and min() Max(C)...

This preview shows pages 1–4. Sign up to view the full content.

A Tutorial of MATLAB for Digital Image Processing

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Agenda Basic matrix manipulation Basic image processing functions An example
Basic Matrix Manipulation MATLAB stands for “ MAT rix LAB oratory” Path Create a new matrix: A = [1 2 3; 4 5 6; 7 8 9] B = [1:5; 2:6] C = 10: 3.5: 15 zeros(), ones(), rand(), randn() Indexing a matrix: A(2,3) R1 = A(1, :) C2 = A(:, 2) S1 = A(1:2:end, 2:2:end) L = A(:) A(5) Matrix concatenation B=[1 2; 3 4] C = [B B+B; B+4; B/3] Deleting rows and columns C(:, 2) = [] C(3, :) = [] C(1:2:end, 2:2:end) = []

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C(1:3:end, :) = Max() and min() Max(C) Max(max(C)) [V, R] = max(C) [V, R] = max(C(:)) Size(), length(), numel(), ndims(), class(), whos Fliplr() flipud() Basic Image Processing Functions Image I/O Imread() imwrite() imshow() imagesc() Image Format Conversion rgb2gray() im2double() im2uint8() An example Load a color image Convert to gray scale image Add Gaussian noise Low pass filtering Save result image...
View Full Document

## tutorial - C(1:3:end, :) = Max() and min() Max(C)...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online