image proceesing with matlab
DESCRIPTION
TRANSCRIPT
![Page 1: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/1.jpg)
IMAGE PROCEESING with MATLAB
Version 7.9.0.52912 Aug 2009
![Page 2: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/2.jpg)
ContentIntroductionApplicationImage processing
Read & Write Image Conversion of image to binary & gray RGB component Image & Noise filtration
GUIRobotics Application
![Page 3: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/3.jpg)
Introduction
Cleve molar in 1984, Mathworks inc Introduced as a simulation tool Supports Graphical Programming Can be interfaced with other High Level languages
![Page 4: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/4.jpg)
Applications
AerospaceBiometricsRoboticsMedicalFinanceControl SystemSignal, Image, Audio and VideoAnimation
![Page 5: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/5.jpg)
List of Companies
ADOBE (Photoshop)NASAGEL&TROBERT BOSCHPEPSI , COCACOLA (Neuro Marketing)
![Page 6: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/6.jpg)
File Extensions
.fig MATLAB Figure .m MATLAB function, script, or class .mat MATLAB binary file for storing variables.mex MATLAB executable (platform specific, e.g.
".mexmac" for the Mac, ".mexglx" for Linux, etc.) .p
MATLAB content-obscured .m file (result of pcode() )
![Page 7: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/7.jpg)
Plot
t=0:0.25:7; y = sin(t); plot(t,y) ; xlabel('x axis'); ylabel('y axis'); title('Heading'); grid on; gtext('text');
![Page 8: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/8.jpg)
How to read an image
a =imread('cameraman.tif');imshow(a);
b=imread('canoe.tif');imshow(b);
![Page 9: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/9.jpg)
Convert image to gray and binary
clc;clear;close alla= imread(‘onion.png');subplot(2,2,1);imshow(a);subplot(2,2,2);b=imresize(a,[256 200]);imshow(b);subplot(2,2,3);c=rgb2gray(b);imshow(c);subplot(2,2,4);d=im2bw(c);imshow(d);
![Page 10: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/10.jpg)
RGB componenta=imread(‘onion.png');subplot(2,2,1);imshow(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);
![Page 11: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/11.jpg)
NOISE AND FILTER a = imread(‘coins.png');
b = imnoise(I,'salt & pepper',0.02);
c = medfilt2(J);
subplot(1,2,1);
imshow(b)
subplot(1,2,2);
imshow(c)
![Page 12: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/12.jpg)
GUIGraphical User Interface
![Page 13: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/13.jpg)
Choosing oF PUSH & AXIS
![Page 14: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/14.jpg)
WRITE THE CODE BELOW THE CALLBACKa =imread('cameraman.tif');axes(handles.one);imshow(a);
![Page 15: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/15.jpg)
RUN THE PROGRAM OR PRESS F5
![Page 16: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/16.jpg)
Image Representation A digital image differs from a photo in that the values are all discrete.
Usually they take integer values. A digital image can be considered as a large two dimensional array of discrete cells, each of which has a brightness associated with it. These dots are called pixels.
![Page 17: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/17.jpg)
Binary ImageA binary image is represented by an M×N logical
matrixwhere pixel values are 1 (true) or 0 (false).
![Page 18: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/18.jpg)
Webcam Capture
Vid=videoinput(‘winvideo’,1);Set(vid,’returnedcolorspace’.’
RGB’);Img=getsnapshot(vid);Imshow(img);
![Page 19: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/19.jpg)
Serial Communication s=serial('COM1'); set(s,'baudrate',9600); s.baudrate=9600; s=serial('COM1','baudrate',9600); get(s,'baudrate'); s.baudrate ans =
9600Setup the Connectionfopen(s);s.Status;Ans= open
![Page 20: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/20.jpg)
Reading from Serial port on MATLAB void setup(){ Serial.begin(9600);} void loop()
{ if(Serial.available()>0)
{ byte b = Serial.read(); }
}
![Page 21: Image proceesing with matlab](https://reader033.vdocuments.mx/reader033/viewer/2022061204/547f59bfb4af9f94728b47ba/html5/thumbnails/21.jpg)