SlideShare a Scribd company logo
Introduction to
MATLAB and Image
Processing
By :Sulaf alMagooshi
www.theSulaf.me
Purpose and Objectives
•
•
•
•
•

Learn about Image Processing.
Discover MATLAB environment.
Learn about MATLAB features.
Discover Image processing toolbox at MATLAB.
Develop a beginner level MATLAB application.

Sulaf Almagooshi, 2013

2
Outline
•
•
•
•
•

What is Image Processing?
MATLAB tour.
Image Processing in MATLAB.
Develop Image Processing Application.
Summary.

Sulaf Almagooshi, 2013

3
What Is
Image Processing?
What Is
Image Processing?
Computer imaging can be separate into two primary
categories:
1. Computer Vision.

Sulaf Almagooshi, 2013

2. Image Processing.

5
Image Processing
topics
The major topics within the field of image processing
include:
1. Image restoration.
2. Image enhancement.
3. Image compression.




Sulaf Almagooshi, 2013

6
Image restoration

Sulaf Almagooshi, 2013

7
Image
enhancement

Sulaf Almagooshi, 2013

8
Image
compression

Sulaf Almagooshi, 2013

9
Image Analysis Process
The image analysis process can be broken down into three
primary stages:
1.Preprocessing.

Sulaf Almagooshi, 2013

2.Data Reduction.

10

3. Features Analysis.
Applications of Image Processing

1.Midicine .

Sulaf Almagooshi, 2013

2.Security.

11

3. Astronomy.
MATLAB
Tour
MATLAB Tour

Sulaf Almagooshi, 2013

13
MATLAB Tour
- some tricks !
• To know if you already used a variable name
• Use “ which”.
• To clear Command Window
• Use “clc”
• To know your variables
• Use “ who”
• To know your variable's info
• Use “ whos”
• To know your files
• Use “ what”

Sulaf Almagooshi, 2013

14
MATLAB Tour

If you needed Help:
Type help in Command window

Sulaf Almagooshi, 2013

15
MATLAB Tour

Sulaf Almagooshi, 2013

16
MATLAB Tour
M-files

• To store the code and execute later.
• The file name will become a function, when we call it it will execute
the file.

• To open a new m-file , In the Command window , type
edit

Sulaf Almagooshi, 2013

17
MATLAB Tour
Editor
Or..

Sulaf Almagooshi, 2013

18
MATLAB Tour
GUI
• MATLAB offers ‘ GUIDE’ tool to design graphic interface.
• In the Command window , type
guide

Sulaf Almagooshi, 2013

19
MATLAB Tour
GUI
GUIDE tool

Sulaf Almagooshi, 2013

20
Image Processing
in MATLAB.
Image Processing :
Basic functions
Function

Description

Imread

to read an image into Matlab.

imshow

To show image in a figure.

Figure

To create an independent figure.

size(x)

To know the min and max for an object.

imwrite(image,
'filename.type')

To save the image.

rgb2gray

To convert a colored image to gray one.

Sulaf Almagooshi, 2013

22
Image Processing :
Basic functions
Function

Description

imhist(x)

Create a histogram.

BW = im2bw(x)

Convert to Binary image.

J = imnoise(a,'salt & pepper',d);

Add noise of type “ salt and pepper”.

IM2 = imcomplement(IM)

computes the complement of the image IM.

SE = strel('square', 5);

Create a structure.

IM2 = imdilate(a,SE);

To dilates an image.

IM2= imerode(a,SE);

To erode an image.

Sulaf Almagooshi, 2013

23
MATLAB Image
Processing toolbox
imtool(f)

Sulaf Almagooshi, 2013

24
Activity :
Develop Image
Processing Application
Connect!

@theSulaf
theSulaf@gmail.com
www.theSulaf.me

Sulaf Almagooshi, 2013

26

More Related Content

PPTX
Chapter 1 and 2 gonzalez and woods
PPSX
Image processing on matlab presentation
PPTX
Clipping ( Cohen-Sutherland Algorithm )
PPTX
Area filling algo
PDF
Image processing, Noise, Noise Removal filters
PPTX
Window to viewport transformation&matrix representation of homogeneous co...
PPTX
Raster scan system & random scan system
PDF
4.intensity transformations
Chapter 1 and 2 gonzalez and woods
Image processing on matlab presentation
Clipping ( Cohen-Sutherland Algorithm )
Area filling algo
Image processing, Noise, Noise Removal filters
Window to viewport transformation&matrix representation of homogeneous co...
Raster scan system & random scan system
4.intensity transformations

What's hot (20)

PPTX
Developing R Graphical User Interfaces
PPTX
Image Restoration (Order Statistics Filters)
PPTX
Image processing second unit Notes
PPTX
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
PPTX
Histogram Processing
DOC
Digital image processing questions
PPT
Histogram equalization
PPTX
3D Transformation in Computer Graphics
PPT
Character generation
PPTX
Image Processing Using MATLAB
PPTX
Chapter 3 image enhancement (spatial domain)
PPTX
Depth Buffer Method
PPT
5 spatial filtering p1
PPTX
Hidden surface removal algorithm
PPTX
Hit and-miss transform
PDF
Image Restoration (Digital Image Processing)
PPTX
Chapter 8 image compression
PPTX
Introduction in Image Processing Matlab Toolbox
PDF
COLOR CRT MONITORS IN COMPUTER GRAPHICS
PPT
Spatial domain and filtering
Developing R Graphical User Interfaces
Image Restoration (Order Statistics Filters)
Image processing second unit Notes
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Histogram Processing
Digital image processing questions
Histogram equalization
3D Transformation in Computer Graphics
Character generation
Image Processing Using MATLAB
Chapter 3 image enhancement (spatial domain)
Depth Buffer Method
5 spatial filtering p1
Hidden surface removal algorithm
Hit and-miss transform
Image Restoration (Digital Image Processing)
Chapter 8 image compression
Introduction in Image Processing Matlab Toolbox
COLOR CRT MONITORS IN COMPUTER GRAPHICS
Spatial domain and filtering
Ad

Viewers also liked (20)

PPTX
Matlab Image Enhancement Techniques
PPTX
Image processing
DOCX
Image Processing using Matlab ( using a built in Highboost filtering,averagin...
PPTX
Machine learning
PPTX
MATLAB & Image Processing
PPTX
final year project_leaf recognition
PPT
An OCR System for recognition of Urdu text in Nastaliq Font
PPT
Matlab
DOCX
Image Processing using Matlab ( using a built in Matlab function(Histogram eq...
PPTX
Introduction to Image Processing with MATLAB
PDF
ENHANCED SIGNATURE VERIFICATION AND RECOGNITION USING MATLAB
PPTX
Text to speech conversation in gujarati
PPTX
Artificial intelligence in medical image processing
DOC
Ocr abstract
PDF
Lecture4 - Machine Learning
PDF
Digital Image Processing - MATLAB Notes - Akshansh
PPTX
Automated attendance system based on facial recognition
PPT
OCR
PPTX
Image proceesing with matlab
PPTX
Readymade M Tech Thesis
Matlab Image Enhancement Techniques
Image processing
Image Processing using Matlab ( using a built in Highboost filtering,averagin...
Machine learning
MATLAB & Image Processing
final year project_leaf recognition
An OCR System for recognition of Urdu text in Nastaliq Font
Matlab
Image Processing using Matlab ( using a built in Matlab function(Histogram eq...
Introduction to Image Processing with MATLAB
ENHANCED SIGNATURE VERIFICATION AND RECOGNITION USING MATLAB
Text to speech conversation in gujarati
Artificial intelligence in medical image processing
Ocr abstract
Lecture4 - Machine Learning
Digital Image Processing - MATLAB Notes - Akshansh
Automated attendance system based on facial recognition
OCR
Image proceesing with matlab
Readymade M Tech Thesis
Ad

Similar to Matlab and Image Processing Workshop-SKERG (20)

PPT
lec1b.ppt
PPTX
Image processing in MATLAB
PPT
MATLAB-tutorial for Image Processing with Lecture 3.ppt
PDF
tutorial1.pdf
PPT
Intro matlab
PDF
MATLAB - PRESENTATION for PG studentspdf
PDF
Image processing using matlab
PPTX
Fundamentals of Image Processing & Computer Vision with MATLAB
PDF
Basics of Image Processing using MATLAB
PDF
Matlab dip
PPT
Digital image processing lab 1
PPT
mathematics laboratory lecture 1_matlab.ppt
PDF
Digital Image Processing Using Matlab 2nd Edition Rafael C Gonzalez
PDF
Image processing
PPT
INTRODUCTION TO MATLAB for PG students.ppt
PDF
Lecture1_computer vision-2023.pdf
PPT
MATLAB_CIS601-03.ppt
PPTX
Image processing-on-matlab-presentation-1
PDF
Programming in matlab lesson5
PDF
Basics of image processing using MATLAB
lec1b.ppt
Image processing in MATLAB
MATLAB-tutorial for Image Processing with Lecture 3.ppt
tutorial1.pdf
Intro matlab
MATLAB - PRESENTATION for PG studentspdf
Image processing using matlab
Fundamentals of Image Processing & Computer Vision with MATLAB
Basics of Image Processing using MATLAB
Matlab dip
Digital image processing lab 1
mathematics laboratory lecture 1_matlab.ppt
Digital Image Processing Using Matlab 2nd Edition Rafael C Gonzalez
Image processing
INTRODUCTION TO MATLAB for PG students.ppt
Lecture1_computer vision-2023.pdf
MATLAB_CIS601-03.ppt
Image processing-on-matlab-presentation-1
Programming in matlab lesson5
Basics of image processing using MATLAB

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PPTX
Cell Types and Its function , kingdom of life
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Institutional Correction lecture only . . .
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Complications of Minimal Access Surgery at WLH
PDF
Pre independence Education in Inndia.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
GDM (1) (1).pptx small presentation for students
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Classroom Observation Tools for Teachers
Cell Types and Its function , kingdom of life
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Institutional Correction lecture only . . .
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Complications of Minimal Access Surgery at WLH
Pre independence Education in Inndia.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial diseases, their pathogenesis and prophylaxis
GDM (1) (1).pptx small presentation for students
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Insiders guide to clinical Medicine.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Microbial disease of the cardiovascular and lymphatic systems
FourierSeries-QuestionsWithAnswers(Part-A).pdf
01-Introduction-to-Information-Management.pdf
Sports Quiz easy sports quiz sports quiz
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Matlab and Image Processing Workshop-SKERG

Editor's Notes

  • #6: In computer vision application the processed images output for use by a computer. In image processing applications the output images are for human consumption.-----Historically, the field of image processing grew from electrical engineering as an extension of the signal processing branch, whereas are the computer science discipline was largely responsible for developments in computer vision.
  • #11: Image processing is low level comparing with image analysis 1. Preprocessing: Is used to remove noise and eliminate irrelevant, visually unnecessary information. Noise is unwanted information that can result from the image acquisition process, other preprocessing steps might include: Gray –level or spatial quantization (reducing the number of bits per pixel or the image size). Finding regions of interest for further processing. 2. Data Reduction: Involves either reducing the data in the spatial domain or transforming it into another domain called the frequency domain, and then extraction features for the analysis process. 3. Features Analysis: The features extracted by the data reduction process are examine and evaluated for their use in the application.
  • #20: Here start developing
  • #21: Here start developing
  • #24: imhist(I) displays a histogram for the image I above a grayscalecolorbar. The number of bins in the histogram is specified by the image type. If I is a grayscale image, imhist uses a default value of 256 bins. If I is a binary image, imhist uses two bins.BW = im2bw(I, level) converts the grayscale image I to a binary image. J = imnoise(I,'salt & pepper',d)adds salt and pepper noise to the image I, where d is the noise density. This affects approximately d*numel(I) pixels. The default for d is 0.05.IM2 = imcomplement(IM) computes the complement of the image IM. IM can be a binary, grayscale, or RGB image. IM2 has the same class and size as IM.In the complement of a binary image, zeros become ones and ones become zeros; black and white are reversed. In the complement of an intensity or RGB image, each pixel value is subtracted from the maximum pixel value supported by the class (or 1.0 for double-precision images) and the difference is used as the pixel value in the output image. In the output image, dark areas become lighter and light areas become darker.SE = strel('square', W) creates a square structuring element whose width is W pixels. W must be a nonnegative IM2 = imdilate(IM,SE) dilates the grayscale, binary, or packed binary image IM, returning the dilated image, IM2. The argument SE is a structuring element object, or array of structuring element objects, returned by the strel function.IM2 = imerode(IM,SE) erodes the grayscale, binary, or packed binary image IM, returning the eroded image IM2. The argument SE is a structuring element object or array of structuring element objects returned by the strel function.*** al function descriptions are from the Mathwork website ***
  • #25: imtool opens a new Image Tool in an empty state. Use the File menu options Open or Import from Workspace to choose an image for display.
  • #26: Lunch GUIDE tool: *Create a GUI * handle input and outputDeploy:mcc -mv filename.m -a topo.mat