SlideShare una empresa de Scribd logo
1 de 26
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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Image processing
Image processingImage processing
Image processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Introduction to OpenCV
Introduction to OpenCVIntroduction to OpenCV
Introduction to OpenCV
 
Image proccessing slide share
Image proccessing slide shareImage proccessing slide share
Image proccessing slide share
 
Cse image processing ppt
Cse image processing pptCse image processing ppt
Cse image processing ppt
 
Image Processing Using MATLAB
Image Processing Using MATLABImage Processing Using MATLAB
Image Processing Using MATLAB
 
Image processing on matlab presentation
Image processing on matlab presentationImage processing on matlab presentation
Image processing on matlab presentation
 
OpenCV Introduction
OpenCV IntroductionOpenCV Introduction
OpenCV Introduction
 
Object detection
Object detectionObject detection
Object detection
 
From Image Processing To Computer Vision
From Image Processing To Computer VisionFrom Image Processing To Computer Vision
From Image Processing To Computer Vision
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Object tracking presentation
Object tracking  presentationObject tracking  presentation
Object tracking presentation
 
Computer Vision(4).pptx
Computer Vision(4).pptxComputer Vision(4).pptx
Computer Vision(4).pptx
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Object Recognition
Object RecognitionObject Recognition
Object Recognition
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABIntroduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
 

Destacado

An OCR System for recognition of Urdu text in Nastaliq Font
An OCR System for recognition of Urdu text in Nastaliq FontAn OCR System for recognition of Urdu text in Nastaliq Font
An OCR System for recognition of Urdu text in Nastaliq Font
Dr. Syed Hassan Amin
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
Ashutosh Shahi
 

Destacado (20)

Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniques
 
Image processing
Image processingImage processing
Image processing
 
Image Processing using Matlab ( using a built in Highboost filtering,averagin...
Image Processing using Matlab ( using a built in Highboost filtering,averagin...Image Processing using Matlab ( using a built in Highboost filtering,averagin...
Image Processing using Matlab ( using a built in Highboost filtering,averagin...
 
Introduction in Image Processing Matlab Toolbox
Introduction in Image Processing Matlab ToolboxIntroduction in Image Processing Matlab Toolbox
Introduction in Image Processing Matlab Toolbox
 
Machine learning
Machine learningMachine learning
Machine learning
 
MATLAB & Image Processing
MATLAB & Image ProcessingMATLAB & Image Processing
MATLAB & Image Processing
 
final year project_leaf recognition
final year project_leaf recognitionfinal year project_leaf recognition
final year project_leaf recognition
 
An OCR System for recognition of Urdu text in Nastaliq Font
An OCR System for recognition of Urdu text in Nastaliq FontAn OCR System for recognition of Urdu text in Nastaliq Font
An OCR System for recognition of Urdu text in Nastaliq Font
 
Matlab
MatlabMatlab
Matlab
 
Image Processing using Matlab ( using a built in Matlab function(Histogram eq...
Image Processing using Matlab ( using a built in Matlab function(Histogram eq...Image Processing using Matlab ( using a built in Matlab function(Histogram eq...
Image Processing using Matlab ( using a built in Matlab function(Histogram eq...
 
ENHANCED SIGNATURE VERIFICATION AND RECOGNITION USING MATLAB
ENHANCED SIGNATURE VERIFICATION AND RECOGNITION USING MATLABENHANCED SIGNATURE VERIFICATION AND RECOGNITION USING MATLAB
ENHANCED SIGNATURE VERIFICATION AND RECOGNITION USING MATLAB
 
Text to speech conversation in gujarati
Text to speech conversation in gujaratiText to speech conversation in gujarati
Text to speech conversation in gujarati
 
Artificial intelligence in medical image processing
Artificial intelligence in medical image processingArtificial intelligence in medical image processing
Artificial intelligence in medical image processing
 
Ocr abstract
Ocr abstractOcr abstract
Ocr abstract
 
Lecture4 - Machine Learning
Lecture4 - Machine LearningLecture4 - Machine Learning
Lecture4 - Machine Learning
 
Digital Image Processing - MATLAB Notes - Akshansh
Digital Image Processing - MATLAB Notes - AkshanshDigital Image Processing - MATLAB Notes - Akshansh
Digital Image Processing - MATLAB Notes - Akshansh
 
Automated attendance system based on facial recognition
Automated attendance system based on facial recognitionAutomated attendance system based on facial recognition
Automated attendance system based on facial recognition
 
OCR
OCROCR
OCR
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
 
Readymade M Tech Thesis
Readymade M Tech ThesisReadymade M Tech Thesis
Readymade M Tech Thesis
 

Similar a Matlab and Image Processing Workshop-SKERG

am presentatiohfdfghjythjvgynvtyfgyuggug
am presentatiohfdfghjythjvgynvtyfgyuggugam presentatiohfdfghjythjvgynvtyfgyuggug
am presentatiohfdfghjythjvgynvtyfgyuggug
krushnazine19
 
Applet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introductionApplet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introduction
devicse
 
Chapter A Guide to Using Microsoft Project 2013 Exploring Pro.docx
Chapter A Guide to Using Microsoft Project 2013 Exploring Pro.docxChapter A Guide to Using Microsoft Project 2013 Exploring Pro.docx
Chapter A Guide to Using Microsoft Project 2013 Exploring Pro.docx
mccormicknadine86
 

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

DSP Report
DSP ReportDSP Report
DSP Report
 
MATLAB Industrial Training in Chandigarh Sector 17
MATLAB Industrial Training in Chandigarh Sector 17MATLAB Industrial Training in Chandigarh Sector 17
MATLAB Industrial Training in Chandigarh Sector 17
 
am presentatiohfdfghjythjvgynvtyfgyuggug
am presentatiohfdfghjythjvgynvtyfgyuggugam presentatiohfdfghjythjvgynvtyfgyuggug
am presentatiohfdfghjythjvgynvtyfgyuggug
 
Mat-lab image processing tatorial
Mat-lab  image processing tatorialMat-lab  image processing tatorial
Mat-lab image processing tatorial
 
A Novel approach for Graphical User Interface development and real time Objec...
A Novel approach for Graphical User Interface development and real time Objec...A Novel approach for Graphical User Interface development and real time Objec...
A Novel approach for Graphical User Interface development and real time Objec...
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Matlab GUI
Matlab GUIMatlab GUI
Matlab GUI
 
Matlab: Gui
Matlab: GuiMatlab: Gui
Matlab: Gui
 
Layar Tutorial - 3D Content Creation Tips & Tricks
Layar Tutorial - 3D Content Creation Tips & TricksLayar Tutorial - 3D Content Creation Tips & Tricks
Layar Tutorial - 3D Content Creation Tips & Tricks
 
Applet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introductionApplet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introduction
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
BigML Release: Image Processing
BigML Release: Image ProcessingBigML Release: Image Processing
BigML Release: Image Processing
 
Image j advanced
Image j   advancedImage j   advanced
Image j advanced
 
Introductory Digital Image Processing using Matlab, IIT Roorkee
Introductory Digital Image Processing using Matlab, IIT RoorkeeIntroductory Digital Image Processing using Matlab, IIT Roorkee
Introductory Digital Image Processing using Matlab, IIT Roorkee
 
Deep Learning on iOS #360iDev
Deep Learning on iOS #360iDevDeep Learning on iOS #360iDev
Deep Learning on iOS #360iDev
 
Chapter A Guide to Using Microsoft Project 2013 Exploring Pro.docx
Chapter A Guide to Using Microsoft Project 2013 Exploring Pro.docxChapter A Guide to Using Microsoft Project 2013 Exploring Pro.docx
Chapter A Guide to Using Microsoft Project 2013 Exploring Pro.docx
 
Image processing in MATLAB
Image processing in MATLABImage processing in MATLAB
Image processing in MATLAB
 
Image making
Image makingImage making
Image making
 
Image Processing Projects Using MATLAB Research Ideas
Image Processing Projects Using MATLAB Research IdeasImage Processing Projects Using MATLAB Research Ideas
Image Processing Projects Using MATLAB Research Ideas
 
Polyline download and visualization over terrain models
Polyline download and visualization over terrain modelsPolyline download and visualization over terrain models
Polyline download and visualization over terrain models
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

Matlab and Image Processing Workshop-SKERG

Notas del editor

  1. 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.
  2. 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.
  3. Here start developing
  4. Here start developing
  5. 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 ***
  6. 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.
  7. Lunch GUIDE tool: *Create a GUI * handle input and outputDeploy:mcc -mv filename.m -a topo.mat