Image processing on matlab presentation

Preview:

Citation preview

IMAGE PROCESSING ON MATLAB

PRESENTED BY RM.NAATCHAMMAI

(III-ECE) VPMM ENGINEERING

COLLEGE

ABSTRACT1. MATLAB introduction-commands-

operators-functions-GUI2. Image Processing Basics formats of image,

colors3. Techniques:enhancement,restoration,wate

r marking,cryptography,steganography,image fusions

4. Algorithms-example programs5. 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 , whoscd , lsdispVersionPwdFloor,round,absdate

OPERATORS 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 SUBPLOT divide 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 PROCESSINGo 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

COLOURSoPRIMARY COLOURSoSECONDARY COLOURSoCODE CONVERSION

IMAGE PROCESSING TECHNIQUESoEnhancemento Restorationo WatermarkingoCryptographyoSteganographyoFusiono RetrievaloSegmentation

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

STEGANOGRAPHYo 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 FusionDecision Level Fusion

IMAGE FUSION

Rule1: Averaging

Rule2: Maximum

Rule3: Minimum

SEGMENTATION OUTPUTCluster1 Cluster2

Cluster3 Cluster4

TO READ AN IMAGE a =imread('cameraman.tif'); imshow(a);

ADD TWO IMAGESI = imread(‘rice.tif');J = imread('cameraman.tif');K = imadd(I,J,'uint16');imshow(K,[])

CONVERT IMAGE TO GRAY AND BINARY

clc;clear;close alla= 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 COMPONENTa=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

Recommended