Presentation is loading. Please wait.

Presentation is loading. Please wait.

Simulation And Modeling

Similar presentations


Presentation on theme: "Simulation And Modeling"— Presentation transcript:

1 Simulation And Modeling
Prepared by- Sabbir Muhammad Saleh Lecturer (00627) University of South Asia Mob Mail-

2 Introduction to MATLAB
Engineering H192 Winter 2005 Introduction to MATLAB Instructor notes: This is the first set of slides for Matlab in the H192 C/C++ programming course. It provides an overview of information that will be helpful in getting started working with Matlab and in the Matlab environment. Lecture 18

3 So why MATLAB and IMAGE PROCESSING ?
Images So why MATLAB and IMAGE PROCESSING ? Images can be treated as matrices !

4 a = imread(‘picture.jpg’); imshow(a);
Images Loading an image: a = imread(‘picture.jpg’); imshow(a);

5 Images Image (=matrix) size: size(a): R G B 384 512

6 Images Color image: 3D Matrix of RGB planes

7 Images Show RED plane: a(:,:,2:3) = 0; imshow(a);

8 Images Show GREEN plane: a(:,:,[1 3]) = 0; imshow(a);

9 Images Show BLUE plane: a(:,:,1:2) = 0; imshow(a);

10 Advanced: Shuffling columns
Images Advanced: Shuffling columns rn = rand(1,512); [rn1,i] = sort(rn); b = a(:,i,:); imshow(b);

11 Images

12 By the way… MATLAB can also handle Movies 3D objects

13 MATLAB is a mighty tool to manipulate matrices
Conclusion MATLAB is a mighty tool to manipulate matrices Images can be treated as matrices MATLAB is a mighty tool to manipulate images

14 MATLAB should be used to code software prototypes
In my opinion… MATLAB should be used to code software prototypes Research is mostly about prototypes, not runtime-optimized software MATLAB should be used in research

15 Algorithm development time is drastically shorter in MATLAB
In my opinion… MATLAB prototypes must be re-coded (e.g. in C++) if there’s need for speed Algorithm development time is drastically shorter in MATLAB

16 Image Algebra A+B (matrix addition) A-B Examples: Matlab program: algebraEx.m Quick Matlab overview Homework: Write a Matlab program that computes a complement image to a given gray level image A

17 Thank You


Download ppt "Simulation And Modeling"

Similar presentations


Ads by Google