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

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

View Full Document Right Arrow Icon
A Tutorial of MATLAB for Digital Image Processing
Background image of page 1

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

View Full DocumentRight Arrow Icon
Agenda Basic matrix manipulation Basic image processing functions An example
Background image of page 2
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) = []
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
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

Page1 / 4

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 Right Arrow Icon
Ask a homework question - tutors are online