SlideShare une entreprise Scribd logo
1  sur  20
IMAGE PROCESSING
ON MATLAB
PRESENTED BY
RM.NAATCHAMMAI
(III-ECE)
ABSTRACT
1. MATLAB introduction-commands-operators-
functions-GUI
2. Image Processing Basics formats of image, colors
3. Techniques:enhancement,restoration,water
marking,cryptography,steganography,image
fusions
4. Algorithms-example programs
5. Real-time applications-project based ideas.
Introduction
 MATLAB  MATrix LABoratory
 Developed by CleveMoler in 1984 as a teaching tool
 High performance language for technical computing
 Typical uses are,
numerical computation
 Data analysis ,plotting and visualization
 Graphical user interface building
Algorithm development and modelling
General Purpose Commands
 clc , clear ,close all
 save
 who , whos
 cd , ls
 disp
 Version
 Pwd
 Floor,round,abs
 date
 ARITHMETIC OPERATORS
 +:ADD,-:SUB,*:MATRIX MUL,/:MATRIX DIV,
 .*:ARRAY MUL,./:ARRAY DIV
 LOGICAL OPERATORS
 AND &,OR |,NOT~
 RELATIONAL OPERATORS
 <,==,>,<=,>=,~=.
 BITWISE OPERATORS
 Bitand ,bitcmp,bitor,bitmax,bitxor,
bitset,Bitget,bitshift
FUNCTIONS
 PLOT linear plot
 STEM discrete plot
 GRID add grid lines
 XLABEL add X-axis label
 YLABEL add Y-axis label
 TITLE add graph title
 SUBPLOTdivide figure window
 FIGURE create new figure window
 PAUSE wait for user response
GUI FILE&M-FILE IN MATLAB
 Usually matlab has two file formats they are,
 M-file
 Gui –file
 GUI FILE:A graphical user interface (GUI) is a user
interface built with graphical objects, such as
buttons, text fields, sliders, and menus. In general,
these objects already have meanings to most
computer users.
 M-FILE: It is built with codings,here we use coding
to run the programs.
USER INTERFACE CONTROLS
 Push Buttons
 Toggle Buttons
 Radio Buttons
 Checkboxes
 Popup Menus
 Edit Text
 Axes
 Static Text
 Figures
IMAGE PROCESSING
o Image –It is define as the group of pixels
o Image formats
o .JPG/.JPEG - Joint Photographic Experts Group
o .GIF - Graphics Interchangeable Format
o .TIFF - Tagged Image File Format
o .PNG - Portable Network Graphics
o .BMP - Bitmap format
o Applications of image processing
o Research
o Survillence
o Medical
oPRIMARY COLOURS
oSECONDARY COLOURS
oCODE CONVERSION
IMAGE PROCESSING TECHNIQUES
oEnhancement
o Restoration
o Watermarking
oCryptography
oSteganography
oFusion
o Retrieval
oSegmentation
WATER MARKING
• Water Marking – Embed the secret image in an
image or any type of multimedia data.
• We should hide the image without changing
original image quality.
• Water marking is used only for copyright
protection
• The applications of water marking are,
• Tele – broadcasting
• Web-applications
• There are two types of water marking they are,
• Visible water marking
• Invisible water marking
STEGANOGRAPHY
o Hiding a Secret data in Digital Images without affecting the
quality of Medium. This image is called as StegoImage.
Original Image Stego Image
Application
o Send secret communication like Military applications
Fusion – Process of Combining two different
scanned images to get a single image having
more relevant information of those twos
Types:
Pixel Level Fusion
Feature Level Fusion
Decision Level Fusion
IMAGE FUSION
Rule1: Averaging
Rule2: Maximum
Rule3: Minimum
SEGMENTATION OUTPUT
Cluster1 Cluster2
Cluster3 Cluster4
TO READ AN IMAGE
a =imread('cameraman.tif');
imshow(a);
ADD TWO IMAGES
I = imread(‘rice.tif');
J = imread('cameraman.tif');
K = imadd(I,J,'uint16');
imshow(K,[])
CONVERT IMAGE TO GRAY AND
BINARY
clc;
clear;
close all
a= imread(‘peppers.png');
subplot(2,2,1);
imshow(a);
subplot(2,2,2);
b=imresize(a,[256 256]);
imshow(b);
subplot(2,2,3);
c=rgb2gray(b);
imshow(c);
subplot(2,2,4);
d=im2bw(c);
imshow(d);
RGB COMPONENT
a=imread(‘peppers.png’)
subplot(2,2,1);
imshow(a);
[r c p]=size(a)
R=a;
G=a;
B=a;
R(:,:,2:3)=0;
subplot(2,2,2);
imshow(R);
G(:,:,1)=0;
G(:,:,3)=0;
subplot(2,2,3);
imshow(G);
B(:,:,1)=0;
B(:,:,2)=0;
subplot(2,2,4);
imshow(B);
a=imread(‘rice.png’);
figure; imshow(a);
b=imnoise(a,’salt & pepper’,0.02)
Figure;
Imshow(B);
c=medfilt2(b);
Figure;
Imshow(c)
FILTER TO REMOVE THE NOISES

Contenu connexe

Tendances

Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
Gichelle Amon
 

Tendances (20)

Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operations
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
MATLAB & Image Processing
MATLAB & Image ProcessingMATLAB & Image Processing
MATLAB & Image Processing
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
 
Application of image processing
Application of image processingApplication of image processing
Application of image processing
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABIntroduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
 
Lecture 15 DCT, Walsh and Hadamard Transform
Lecture 15 DCT, Walsh and Hadamard TransformLecture 15 DCT, Walsh and Hadamard Transform
Lecture 15 DCT, Walsh and Hadamard Transform
 
Image proccessing and its application
Image proccessing and its applicationImage proccessing and its application
Image proccessing and its application
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Introduction to image contrast and enhancement method
Introduction to image contrast and enhancement methodIntroduction to image contrast and enhancement method
Introduction to image contrast and enhancement method
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Cse image processing ppt
Cse image processing pptCse image processing ppt
Cse image processing ppt
 
Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processing
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 

En vedette

Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
vkn13
 
Digital watermarking
Digital watermarkingDigital watermarking
Digital watermarking
Ankush Kr
 

En vedette (12)

Introduction in Image Processing Matlab Toolbox
Introduction in Image Processing Matlab ToolboxIntroduction in Image Processing Matlab Toolbox
Introduction in Image Processing Matlab Toolbox
 
Matlab and Image Processing Workshop-SKERG
Matlab and Image Processing Workshop-SKERG Matlab and Image Processing Workshop-SKERG
Matlab and Image Processing Workshop-SKERG
 
Matlab
MatlabMatlab
Matlab
 
Matlab
MatlabMatlab
Matlab
 
Digital Image Processing - MATLAB Notes - Akshansh
Digital Image Processing - MATLAB Notes - AkshanshDigital Image Processing - MATLAB Notes - Akshansh
Digital Image Processing - MATLAB Notes - Akshansh
 
Digital water marking
Digital water markingDigital water marking
Digital water marking
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
 
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSINGBRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
 
PPT on BRAIN TUMOR detection in MRI images based on IMAGE SEGMENTATION
PPT on BRAIN TUMOR detection in MRI images based on  IMAGE SEGMENTATION PPT on BRAIN TUMOR detection in MRI images based on  IMAGE SEGMENTATION
PPT on BRAIN TUMOR detection in MRI images based on IMAGE SEGMENTATION
 
Getting started with image processing using Matlab
Getting started with image processing using MatlabGetting started with image processing using Matlab
Getting started with image processing using Matlab
 
Digital watermarking
Digital watermarkingDigital watermarking
Digital watermarking
 

Similaire à Image processing on matlab presentation

Digital image processing
Digital image processingDigital image processing
Digital image processing
manpreetgrewal
 

Similaire à Image processing on matlab presentation (20)

image processing engimage processing eng
image processing engimage processing engimage processing engimage processing eng
image processing engimage processing eng
 
Digital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfDigital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdf
 
Summer training on matlab
Summer training on matlabSummer training on matlab
Summer training on matlab
 
Ijetr011814
Ijetr011814Ijetr011814
Ijetr011814
 
Image processing ppt
Image processing pptImage processing ppt
Image processing ppt
 
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDSFACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
 
IRJET- Homomorphic Image Encryption
IRJET-  	  Homomorphic Image EncryptionIRJET-  	  Homomorphic Image Encryption
IRJET- Homomorphic Image Encryption
 
Dip sdit 7
Dip sdit 7Dip sdit 7
Dip sdit 7
 
Presentation1.2.pptx
Presentation1.2.pptxPresentation1.2.pptx
Presentation1.2.pptx
 
car number plate detection using matlab image & video processing
car number plate detection using matlab image & video processingcar number plate detection using matlab image & video processing
car number plate detection using matlab image & video processing
 
YCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptxYCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptx
 
Image Processing By SAIKIRAN PANJALA
 Image Processing By SAIKIRAN PANJALA Image Processing By SAIKIRAN PANJALA
Image Processing By SAIKIRAN PANJALA
 
Image processing and compression.pptx
Image processing and compression.pptxImage processing and compression.pptx
Image processing and compression.pptx
 
Application of image processing techniques
Application of image processing techniquesApplication of image processing techniques
Application of image processing techniques
 
Matlab Training in Jalandhar | Matlab Training in Phagwara
Matlab Training in Jalandhar | Matlab Training in PhagwaraMatlab Training in Jalandhar | Matlab Training in Phagwara
Matlab Training in Jalandhar | Matlab Training in Phagwara
 
Matlab Training in Chandigarh
Matlab Training in ChandigarhMatlab Training in Chandigarh
Matlab Training in Chandigarh
 
IMAGE PROCESSING - MATHANKUMAR.S - VMKVEC
IMAGE PROCESSING - MATHANKUMAR.S - VMKVECIMAGE PROCESSING - MATHANKUMAR.S - VMKVEC
IMAGE PROCESSING - MATHANKUMAR.S - VMKVEC
 
IRJET - Automatic Licence Plate Detection and Recognition
IRJET -  	  Automatic Licence Plate Detection and RecognitionIRJET -  	  Automatic Licence Plate Detection and Recognition
IRJET - Automatic Licence Plate Detection and Recognition
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Python Open CV
Python Open CVPython Open CV
Python Open CV
 

Plus de Naatchammai Ramanathan

Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014
Naatchammai Ramanathan
 

Plus de Naatchammai Ramanathan (20)

Why english club
Why english club Why english club
Why english club
 
Spoken bbc
Spoken bbcSpoken bbc
Spoken bbc
 
Non-material heritage
Non-material heritageNon-material heritage
Non-material heritage
 
Pronunciations of different words
Pronunciations of different wordsPronunciations of different words
Pronunciations of different words
 
Overdose of effective vocabs
Overdose of effective vocabsOverdose of effective vocabs
Overdose of effective vocabs
 
Designing a world class clasroom by naatchammai ramanathan
Designing a world class clasroom by naatchammai ramanathanDesigning a world class clasroom by naatchammai ramanathan
Designing a world class clasroom by naatchammai ramanathan
 
Mail merge
Mail mergeMail merge
Mail merge
 
Uniform assessment system
Uniform assessment system Uniform assessment system
Uniform assessment system
 
annual day script of a school 2019
annual day script of a school 2019annual day script of a school 2019
annual day script of a school 2019
 
Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014Workshop for partners_on_the_reporting_process_07.03.2014
Workshop for partners_on_the_reporting_process_07.03.2014
 
ad
adad
ad
 
Standardised ppt on revised model gst law
Standardised ppt on revised model gst lawStandardised ppt on revised model gst law
Standardised ppt on revised model gst law
 
manet
manet manet
manet
 
Personality development for english
Personality development for englishPersonality development for english
Personality development for english
 
Matlab
MatlabMatlab
Matlab
 
Lifi
Lifi Lifi
Lifi
 
Image processing-on-matlab-presentation-1
Image processing-on-matlab-presentation-1Image processing-on-matlab-presentation-1
Image processing-on-matlab-presentation-1
 
Gst ppt-taxguru
Gst ppt-taxguruGst ppt-taxguru
Gst ppt-taxguru
 
Gst personal
Gst   personalGst   personal
Gst personal
 
Deep sky astrophotography by naatchammai rm
Deep sky astrophotography by naatchammai rmDeep sky astrophotography by naatchammai rm
Deep sky astrophotography by naatchammai rm
 

Dernier

Dernier (20)

Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 

Image processing on matlab presentation

  • 1. IMAGE PROCESSING ON MATLAB PRESENTED BY RM.NAATCHAMMAI (III-ECE)
  • 2. ABSTRACT 1. MATLAB introduction-commands-operators- functions-GUI 2. Image Processing Basics formats of image, colors 3. Techniques:enhancement,restoration,water marking,cryptography,steganography,image fusions 4. Algorithms-example programs 5. Real-time applications-project based ideas.
  • 3. Introduction  MATLAB  MATrix LABoratory  Developed by CleveMoler in 1984 as a teaching tool  High performance language for technical computing  Typical uses are, numerical computation  Data analysis ,plotting and visualization  Graphical user interface building Algorithm development and modelling
  • 4. General Purpose Commands  clc , clear ,close all  save  who , whos  cd , ls  disp  Version  Pwd  Floor,round,abs  date
  • 5.  ARITHMETIC OPERATORS  +:ADD,-:SUB,*:MATRIX MUL,/:MATRIX DIV,  .*:ARRAY MUL,./:ARRAY DIV  LOGICAL OPERATORS  AND &,OR |,NOT~  RELATIONAL OPERATORS  <,==,>,<=,>=,~=.  BITWISE OPERATORS  Bitand ,bitcmp,bitor,bitmax,bitxor, bitset,Bitget,bitshift
  • 6. FUNCTIONS  PLOT linear plot  STEM discrete plot  GRID add grid lines  XLABEL add X-axis label  YLABEL add Y-axis label  TITLE add graph title  SUBPLOTdivide figure window  FIGURE create new figure window  PAUSE wait for user response
  • 7. GUI FILE&M-FILE IN MATLAB  Usually matlab has two file formats they are,  M-file  Gui –file  GUI FILE:A graphical user interface (GUI) is a user interface built with graphical objects, such as buttons, text fields, sliders, and menus. In general, these objects already have meanings to most computer users.  M-FILE: It is built with codings,here we use coding to run the programs.
  • 8. USER INTERFACE CONTROLS  Push Buttons  Toggle Buttons  Radio Buttons  Checkboxes  Popup Menus  Edit Text  Axes  Static Text  Figures
  • 9. IMAGE PROCESSING o Image –It is define as the group of pixels o Image formats o .JPG/.JPEG - Joint Photographic Experts Group o .GIF - Graphics Interchangeable Format o .TIFF - Tagged Image File Format o .PNG - Portable Network Graphics o .BMP - Bitmap format o Applications of image processing o Research o Survillence o Medical
  • 11. IMAGE PROCESSING TECHNIQUES oEnhancement o Restoration o Watermarking oCryptography oSteganography oFusion o Retrieval oSegmentation
  • 12.
  • 13. WATER MARKING • Water Marking – Embed the secret image in an image or any type of multimedia data. • We should hide the image without changing original image quality. • Water marking is used only for copyright protection • The applications of water marking are, • Tele – broadcasting • Web-applications • There are two types of water marking they are, • Visible water marking • Invisible water marking
  • 14. STEGANOGRAPHY o Hiding a Secret data in Digital Images without affecting the quality of Medium. This image is called as StegoImage. Original Image Stego Image Application o Send secret communication like Military applications
  • 15. Fusion – Process of Combining two different scanned images to get a single image having more relevant information of those twos Types: Pixel Level Fusion Feature Level Fusion Decision Level Fusion IMAGE FUSION Rule1: Averaging Rule2: Maximum Rule3: Minimum
  • 17. TO READ AN IMAGE a =imread('cameraman.tif'); imshow(a); ADD TWO IMAGES I = imread(‘rice.tif'); J = imread('cameraman.tif'); K = imadd(I,J,'uint16'); imshow(K,[])
  • 18. CONVERT IMAGE TO GRAY AND BINARY clc; clear; close all a= imread(‘peppers.png'); subplot(2,2,1); imshow(a); subplot(2,2,2); b=imresize(a,[256 256]); imshow(b); subplot(2,2,3); c=rgb2gray(b); imshow(c); subplot(2,2,4); d=im2bw(c); imshow(d);
  • 19. RGB COMPONENT a=imread(‘peppers.png’) subplot(2,2,1); imshow(a); [r c p]=size(a) R=a; G=a; B=a; R(:,:,2:3)=0; subplot(2,2,2); imshow(R); G(:,:,1)=0; G(:,:,3)=0; subplot(2,2,3); imshow(G); B(:,:,1)=0; B(:,:,2)=0; subplot(2,2,4); imshow(B);
  • 20. a=imread(‘rice.png’); figure; imshow(a); b=imnoise(a,’salt & pepper’,0.02) Figure; Imshow(B); c=medfilt2(b); Figure; Imshow(c) FILTER TO REMOVE THE NOISES