SlideShare a Scribd company logo
1 of 140
Two day
Workshop on
Matlab
Introduction
  ļƒ¼ Cleve molar in 1984, Mathworks inc
  ļƒ¼ Introduced as a simulation tool
  ļƒ¼ Supports Graphical Programming
  ļƒ¼ Can be interfaced with other High
    Level languages




Technology beyond the Dreamsā„¢            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Applications
     ā€¢   Aerospace
     ā€¢   Biometrics
     ā€¢   Medical
     ā€¢   Finance
     ā€¢   Control System
     ā€¢   Signal,Image,Audio and Video
     ā€¢   Neural networks,Fuzzy logic
     ā€¢   Animation
Technology beyond the Dreamsā„¢           Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
List of Companies
     ā€¢   ADOBE (Photoshop)
     ā€¢   NASA
     ā€¢   GE
     ā€¢   L&T
     ā€¢   ROBERT BOSCH
     ā€¢   PEPSI , COCACOLA (Neuro Marketing)


Technology beyond the Dreamsā„¢       Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
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() )
Technology beyond the Dreamsā„¢                      Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Difference between C and Matlab
     ā€¢   Matlab is Proprietary compiler,C has open source.
     ā€¢   Inbuilt Functions in Matlab(Application Oriented).
     ā€¢   User friendly syntax.
     ā€¢   Fourth generation Programming Language tool.




Technology beyond the Dreamsā„¢            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Desktop Tools
     ā€¢   Command Window
          ā€“ type commands

     ā€¢   Workspace
          ā€“ view program variables
          ā€“ clear to clear
          ā€“ double click on a variable to see it in the Array Editor

     ā€¢   Command History
          ā€“ view past commands
          ā€“ save a whole session using diary

     ā€¢   Launch Pad
          ā€“ access tools, demos and documentation



Technology beyond the Dreamsā„¢                                          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Command window




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Change the current working
                    directory




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Arithmetic operators
     1)     plus    - Plus                      +
     2)    uplus    - Unary plus                +
     3)    minus     - Minus                     -
     4)    uminus     - Unary minus               -
     5)    mtimes     - Matrix multiply         *
     6)    times    - Array multiply            .*
     7)    mpower      - Matrix power           ^
     8)    power     - Array power                .^
     9)    mldivide - Backslash or left matrix divide 
     10)    mrdivide - Slash or right matrix divide     /
     11)    ldivide - Left array divide            .
     12)    rdivide - Right array divide             ./


Technology beyond the Dreamsā„¢               Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Relational operators
     1)    eq        - Equal                          ==
     2)     ne        - Not equal                     ~=
     3)     lt      - Less than                       <
     4)     gt       - Greater than                   >
     5)     le       - Less than or equal             <=
     6)     ge        - Greater than or equal         >=




Technology beyond the Dreamsā„¢                   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Logical operators
     1) Short-circuit logical AND       &&
     2) Short-circuit logical OR       ||
     3) and         - Element-wise logical AND          &
     4) or        - Element-wise logical OR           |
     5) not        - Logical NOT                  ~
     6) xor        - Logical EXCLUSIVE OR
     7) any         - True if any element of vector is nonzero
     8) all       - True if all elements of vector are nonzero




Technology beyond the Dreamsā„¢                              Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
BITWISE OPERATORS
     1)      bitand      - Bit-wise AND.
     2)      bitcmp      - Complement bits.
     3)      bitor      - Bit-wise OR.
     4)      bitmax      - Maximum floating point
                         integer.
     5)      bitxor     - Bit-wise XOR.
     6)      bitset   - Set bit.
     7)      bitget   - Get bit.
     8)      bitshift - Bit-wise shift.


Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Vectors
     a = [1 2 3 4 5 6 9 8 7] ;

     t = 0:2:20
     t = 0 2 4 6 8 10 12 14 16 18 20

     b=a+2

     b = 3 4 5 6 7 8 11 10 9

     c=a+b
     c = 4 6 8 10 12 14 20 18 16



Technology beyond the Dreamsā„¢                    Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Matrices
     B = [1 2 3 4;5 6 7 8;9 10 11 12] ;

                    B=1234
                     5678
                     9 10 11 12

                    C = B'

                    C=159
                     2 6 10
                     3 7 11
                     4 8 12


Technology beyond the Dreamsā„¢              Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Basic matrix operators
     X = inv(E) ;%INVERSE OF THE MATRIX
     [A,H] = eig(E) %eigen value &vector
     p = poly(E) %polynomial
     c = abs(y) ;
     D=min(a);
     D=max(a);



     ā€¢ Convolution
     x = [1 2];
     y = [1 4 8];
      z = conv(x,y)
     [xx, R] = deconv(z,y)



Technology beyond the Dreamsā„¢              Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
PLOT

     t=0:0.25:7;
     y = sin(t);
     plot(t,y) ;
     xlabel('x axis');
     ylabel('y axis');
     title('Heading');
     grid on;
     gtext('text');


Technology beyond the Dreamsā„¢          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
IF LOOP
     a=6;

     if a > 6

        disp('a is greater');

     elseif a==0

        disp('a is zero');

     else

        disp('a is smaller');

     end
Technology beyond the Dreamsā„¢             Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
FOR LOOP
     a=5;

     for i=1:5

        a=a+1

     end

     disp(a);

     ANS a =10



Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
While Loop
        a=5;

         while a < 10
         a=a+1;

         end

        disp(a);

     Ans a =10


Technology beyond the Dreamsā„¢          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Function
     function c=add(a,b);         function c=mul(a,b);
     c=a+b;                       c=a*b;
     return                       return

     Main
     a=5;
     b=6;
     c=add(a,b);
     disp(c);
     d=mul(a,b);
     disp(d);



Technology beyond the Dreamsā„¢                  Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
SWITCH CASE
          method = 'Bilinear';
           switch lower(METHOD)
            case {'linear','bilinear'}
             disp('Method is linear')
            case 'cubic'
             disp('Method is cubic')
            case 'nearest'
             disp('Method is nearest')
            otherwise
             disp('Unknown method.')
             end

     Ans Method is linear


Technology beyond the Dreamsā„¢            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
SWITCH (NUMERICAL)
    a=input('enter---->');
    switch a
        case 1
        fprintf('one');
        case 2
         fprintf('two');
        case 3
        fprintf('three');
         case 4
        fprintf('four');
        otherwise
        fprintf('otherwise');
    end



Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
How to read an image
     a =imread('cameraman.tif');   a =imread('flowers.tif');
     imshow(a);                    imshow(a);
     pixval on;                    pixval on;




Technology beyond the Dreamsā„¢                 Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
How to read an audio file

     a =wavread('test.wav');
     wavplay(a,44100);
     Plot(a);




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
How to read an video file

     a=aviread('movie.avi');
     movie(a);




Technology beyond the Dreamsā„¢    Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Add two images

    I = imread('rice.tif');               I = imread('rice.tif');
    J = imread('cameraman.tif');
    K = imadd(I,J,'uint16');
                                           J = imadd(I,50);
    imshow(K,[])                           subplot(1,2,1), imshow(I)
                                           subplot(1,2,2), imshow(J)




Technology beyond the Dreamsā„¢                        Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Subtract two images
    I = imread('rice.tif');
     Iq = imsubtract(I,50);
     subplot(1,2,1), imshow(I)
    subplot(1,2,2), imshow(Iq)




Technology beyond the Dreamsā„¢    Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Convert image to gray and binary
    clc;
    clear;
    close all
    a= imread('flowers.tif');
    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);
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RGB component
     a=imread('flowers.tif');
     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);



Technology beyond the Dreamsā„¢              Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Convert Image into One dimensional

     a = imread('cameraman.tif');

     [r c]=size(a);

     Len=r*c;

     b=reshape(a,[1 Len]);

Technology beyond the Dreamsā„¢       Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CONVER MOVIE TO FRAMES
   file=aviinfo('movie1.avi');      % to get inforamtaion abt video file
   frm_cnt=file.NumFrames             % No.of frames in the video file
   str2='.bmp'
       h = waitbar(0,'Please wait...');
   for i=1:frm_cnt
       frm(i)=aviread(filename,i); % read the Video file
       frm_name=frame2im(frm(i)); % Convert Frame to image file
         frm_name=rgb2gray(frm_name);%convert gray
       filename1=strcat(strcat(num2str(i)),str2);
       imwrite(frm_name,filename1); % Write image file
        waitbar(i/frm_cnt,h)
   end
   close(h)




Technology beyond the Dreamsā„¢                                              Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CONVERT FRAMES TO MOVIES
     frm_cnt=5;
     number_of_frames=frm_cnt;
     filetype='.bmp';
     display_time_of_frame=1;
     mov = avifile('MOVIE.avi');
     count=0;
     for i=1:number_of_frames
         name1=strcat(num2str(i),filetype);
         a=imread(name1);
         while count<display_time_of_frame
           count=count+1;
           imshow(a);
           F=getframe(gca);
           mov=addframe(mov,F);
         end
         count=0;
     end
     mov=close(mov);

Technology beyond the Dreamsā„¢                 Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
How to read a text file
    fid = fopen('message.txt','r');
    ice1= fread(fid);
    s = char(ice1');
    fclose(fid);
    disp(s);

    Ans   hello




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
How to write a text file

     txt=[65 67 68 69];
     fid = fopen('output.txt','wb');
     fwrite(fid,char(txt),'char');
     fclose(fid);

     ANS =ACDE




Technology beyond the Dreamsā„¢          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Store an Image,Audio
     a =imread('cameraman.tif');
     imwrite(a,'new.bmp');

     a=wavread('test.wav');
     wavwrite(d,44100,16,'nTEST.WAV');




Technology beyond the Dreamsā„¢       Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
SAVE AND LOAD THE VARIABLE
     A=5;
     save A A;

     load A

     B=1;
     C=A+B;
     disp(C);
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Wavelet transform

        a =imread('cameraman.tif');

        [LL LH HL HH]=dwt2(a,'haar');

        Dec=[...
              LL,LH
          HL,HH
          ...
          ];

        imshow(Dec,[]);

Technology beyond the Dreamsā„¢           Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
DCT transform

     a=imread('cameraman.tif');
     subplot(1,3,1);imshow(a,[]);
     b=dct2(a);
     subplot(1,3,2);imshow(b,[]);title('DCT');
     c=idct2(b);
     subplot(1,3,3);imshow(c,[]);title('IDCT');




Technology beyond the Dreamsā„¢                     Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
NOISE AND FILTER


   I = imread('eight.tif');
   J = imnoise(I,'salt & pepper',0.02);
   K = medfilt2(J);
   subplot(1,2,1);imshow(J)
  subplot(1,2,2);imshow(K)




Technology beyond the Dreamsā„¢                Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
GUI




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
DIALOG BOX

        warndlg('hello');       helpdlg('hello');        errordlg('hello');




        msgbox('hello');




Technology beyond the Dreamsā„¢                       Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
ButtonName=questdlg('What is your wish?', ...
               'Genie Question', ...
               'Food','Clothing','Money','Money');


     switch ButtonName,
      case 'Food',
       disp('Food is delivered');
      case 'Clothing',
       disp('The Emperor''s new clothes have arrived.')
       case 'Money',
        disp('A ton of money falls out the sky.');
     end % switch




Technology beyond the Dreamsā„¢                             Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
USER INTERFACE GET FILE
    [filename, pathname] = uigetfile('*.m', 'Pick an M-file');
        if isequal(filename,0) | isequal(pathname,0)
           disp('User pressed cancel')
        else
           disp(['User selected ', fullfile(pathname, filename)])
        end




Technology beyond the Dreamsā„¢                                       Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
USER INTERFACE PUT FILE
     [filename, pathname] = uiputfile('*.m', 'Pick an M-file');
        if isequal(filename,0) | isequal(pathname,0)
           disp('User pressed cancel')
        else
           disp(['User selected ', fullfile(pathname, filename)])
        end




Technology beyond the Dreamsā„¢                                       Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
GUI




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
GUIā€¦




Technology beyond the Dreamsā„¢          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
MENU BAR




Technology beyond the Dreamsā„¢        Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
PUSH BUTTON




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
TOGGLE BUTTON




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RADIO BUTTON




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHECKBOX




Technology beyond the Dreamsā„¢        Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
EDIT TEXT




Technology beyond the Dreamsā„¢          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
STATIC TEXT




Technology beyond the Dreamsā„¢     Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
SLIDER




Technology beyond the Dreamsā„¢            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
FRAME




Technology beyond the Dreamsā„¢           Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
LISTBOX




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
POPUP MENU




Technology beyond the Dreamsā„¢    Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
AXES




Technology beyond the Dreamsā„¢          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
ALIGN OBJECTS




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
MENU EDITOR




Technology beyond the Dreamsā„¢    Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
M FILE EDITOR




Technology beyond the Dreamsā„¢     Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
EMPTY GUI




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
GENERATED M FILE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
PUSH BUTTON




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK PUSH BUTTON & GO
         FOR PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK PUSH BUTTON & GO
             FOR M FILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
GO FOR CALLBACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                          CALLBACK
  a =imread('cameraman.tif');

  imshow(a);




Technology beyond the Dreamsā„¢     Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM OR PRESS F5




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHOOSE AXES




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHOOSE AXES




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK AXES & GO FOR
              PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
 a =imread('cameraman.tif');
                             CALLBACK
 axes(handles.one);

 imshow(a);




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CODE

    a =imread('cameraman.tif');

    axes(handles.one);

    imshow(a);




Technology beyond the Dreamsā„¢            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
TOGGLE BUTTON




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK TOGGLE & GO FOR
            PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK TOGGLE & GO FOR M
                FILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                       CALLBACK

    a=get(hObject,'Value');

    if a ==1

    a =imread('cameraman.tif');

    axes(handles.one);

    imshow(a);

    else

    a =imread('greens.jpg');

    axes(handles.one);

    imshow(a);

    end



Technology beyond the Dreamsā„¢     Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK RADIO BUTTON & GO
         FOR PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK CHECK BOX & GO
              FOR MFILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                  CALLBACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK CHECK BOX & GO
          FOR PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK CHECK BOX & GO
              FOR M FILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                  CALLBACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK FRAME & SEND TO
                   BACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK LIST BOX & GO FOR
           PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
EDIT THE STRING OPTIONS




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK LIST BOX & GO FOR M
                FILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                         CALLBACK
    contents = get(hObject,'Value')

    switch contents

      case 1
        a =imread('cameraman.tif');
        axes(handles.one);
        imshow(a);
      case 2
         a =imread('flowers.tif');
        axes(handles.one);
        imshow(a);
      case 3
         a =imread('rice.tif');
        axes(handles.one);
        imshow(a);
      otherwise
         a =imread('mri.tif');
        axes(handles.one);
        imshow(a);

    end




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHOOSE POPUPMENU




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK POPUP MENU & GO
          FOR PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
EDIT THE STRING OPTIONS




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE
     contents = get(hObject,'Value')

     switch contents

       case 1
         a =imread('cameraman.tif');
         axes(handles.one);
         imshow(a);
       case 2
          a =imread('flowers.tif');
         axes(handles.one);
         imshow(a);
       case 3
          a =imread('rice.tif');
         axes(handles.one);
         imshow(a);
       otherwise
          a =imread('mri.tif');
         axes(handles.one);
         imshow(a);

     end




Technology beyond the Dreamsā„¢                     Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK EDIT TEXT & GO FOR
           PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
EDIT STRING AND TAG




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK EDIT TEXT & GO FOR
                M FILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK AXES & GO FOR
              PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                  CALLBACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                  CALLBACK

   a=get(hObject,'String') ;
   b=char(a);
   c=imread(b);
   axes(handles.one);
   imshow(c);




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK STATIC TEXT & GO
          FOR PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                   CALLBACK
  a=get(hObject,'String') ;
  set(handles.t1,'String',a);
  b=char(a);
  c=imread(b);
  axes(handles.one);
  imshow(c);




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
SLIDER




Technology beyond the Dreamsā„¢            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK SLIDER & GO FOR
            PROPERTY INSPECTOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
DROP TWO AXES




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
DROP PUSH BUTTON




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
CHANGE THE STRING AND TAG
                  VALUE




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
GO FOR CALLBACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                              CALLBACK
[filename, pathname] = uigetfile('*.bmp', 'Pick an Image');

  if isequal(filename,0) | isequal(pathname,0)

    warndlg('User pressed cancel')
  else

    a=imread(filename);
    axes(handles.axes1);
    imshow(a);
    handles.filename=filename;
    guidata(hObject, handles);

  end




Technology beyond the Dreamsā„¢                                 Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RIGHT CLICK SLIDER & GO FOR M
                FILE EDITOR




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
WRITE THE CODE BELOW THE
                  CALLBACK




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN THE PROGRAM


  a=get(hObject,'Value');
  filename =handles.filename;
  I = imread(filename);
  J = imadd(I,50);
  axes(handles.axes2);
  imshow(J)




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
MENU EDITOR




Technology beyond the Dreamsā„¢    Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
EDIT STRING AND TAG




Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
RUN




Technology beyond the Dreamsā„¢         Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Counting the Number of Objects in
                  an Image
     clc;
     clear;
     close all;
     InputImage=imread('eight.tif');
     subplot(2,2,1);
     imshow(InputImage);title('InputImage');
     BinaryImage=im2bw(InputImage);
     subplot(2,2,2);
     imshow(BinaryImage);
     ComplementImage=imcomplement(BinaryImage);
     subplot(2,2,3);
     imshow(ComplementImage);
     HolesClearedImage = imfill(ComplementImage,'holes');
     subplot(2,2,4);
     imshow(HolesClearedImage);title('HolesClearedImage');
     [L,Num] = bwlabel(HolesClearedImage)

     for i=1:Num
       figure;
       imshow(L==i);
       pause(1)
     end


Technology beyond the Dreamsā„¢                                Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Thresholding Based Segmentation-
                   Con 1
    ā€¢   clc;
    ā€¢   clear;
    ā€¢   close all;
    ā€¢   InputImage=imread('34.bmp');
    ā€¢   figure;
    ā€¢   imshow(InputImage);
    ā€¢   ColourSpaceConversion=rgb2hsv(InputImage);
    ā€¢   imshow(ColourSpaceConversion);
    ā€¢   %GrayScaleImage=rgb2gray(ColourSpaceConversion);
    ā€¢   GrayScaleImage=ColourSpaceConversion(:,:,1);
    ā€¢   [rows columns planes]=size(GrayScaleImage);
    ā€¢   BinaryMask= GrayScaleImage > 0.5;
    ā€¢   figure;
    ā€¢   imshow(BinaryMask);
    ā€¢   Impixelinfo
    ā€¢   h = waitbar(0,'Please wait...');
    ā€¢   SegmentedImage=[];
Technology beyond the Dreamsā„¢                              Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Cont 2
    for i=1:rows
       for j=1:columns
         if BinaryMask(i,j) == 1
        SegmentedImage(i,j,1)=InputImage(i,j,1);
            SegmentedImage(i,j,2)=InputImage(i,j,2);
            SegmentedImage(i,j,3)=InputImage(i,j,3);
         else
            SegmentedImage(i,j,1)=0;
            SegmentedImage(i,j,2)=0;
            SegmentedImage(i,j,3)=0;
         end
       end
      waitbar(i/rows,h)
    end
     SegmentedImage=uint8(SegmentedImage);
    figure;
    imshow(SegmentedImage);
    impixelinfo;

Technology beyond the Dreamsā„¢                            Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Image Fusion
    clc;
    clear;
    close all;
    M1=imread('mri.jpg');
    M2=imread('ct.jpg');
    subplot(2,2,1);imshow(M1);title('MRI');
    subplot(2,2,2);imshow(M2);title('CT');
    [R C P]=size(M1);
    for i=1:R
      for j=1:C
         if M1(i,j)>M2(i,j)
            FusedImage(i,j)=M1(i,j);
         else
            FusedImage(i,j)=M2(i,j);
         end
      end
    end


Technology beyond the Dreamsā„¢                   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Image fusion-Cont 2
     subplot(2,2,3);imshow(FusedImage);title('Max');
     for i=1:R
       for j=1:C
          if M1(i,j)>M2(i,j)
             FusedImage(i,j)=M2(i,j);
          else
             FusedImage(i,j)=M1(i,j);
          end
       end
     end
     subplot(2,2,4);imshow(FusedImage);title('Min');




Technology beyond the Dreamsā„¢                          Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
Technology beyond the Dreamsā„¢   Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
For more details
         ā€“   www.pantechsolutions.net
         ā€“   http://www.slideshare.net/pantechsolutions
         ā€“   http://www.scribd.com/pantechsolutions
         ā€“   http://www.youtube.com/pantechsolutions




Technology beyond the Dreamsā„¢                 Copyright Ā© 2006 Pantech Solutions Pvt Ltd.

More Related Content

What's hot

Histogram of oriented gradients
Histogram of oriented gradientsHistogram of oriented gradients
Histogram of oriented gradientsSu Yan-Jen
Ā 
Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...
Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...
Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...Ulaş Bağcı
Ā 
Image segmentation
Image segmentation Image segmentation
Image segmentation Tubur Borgoary
Ā 
After effects-basics
After effects-basicsAfter effects-basics
After effects-basicsSamuel Hayman
Ā 
Semantic Segmentation Methods using Deep Learning
Semantic Segmentation Methods using Deep LearningSemantic Segmentation Methods using Deep Learning
Semantic Segmentation Methods using Deep LearningSungjoon Choi
Ā 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformationMdFazleRabbi18
Ā 
image denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transformimage denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transformalishapb
Ā 
introduction to Digital Image Processing
introduction to Digital Image Processingintroduction to Digital Image Processing
introduction to Digital Image Processingnikesh gadare
Ā 
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 khanam22
Ā 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval Swati Chauhan
Ā 
Applications of Digital image processing in Medical Field
Applications of Digital image processing in Medical FieldApplications of Digital image processing in Medical Field
Applications of Digital image processing in Medical FieldAshwani Srivastava
Ā 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentationRania H
Ā 
Image Processing Using MATLAB
Image Processing Using MATLABImage Processing Using MATLAB
Image Processing Using MATLABAmarjeetsingh Thakur
Ā 
Feature detection - Image Processing
Feature detection - Image ProcessingFeature detection - Image Processing
Feature detection - Image ProcessingRitesh Kanjee
Ā 
Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniquesmatlab Content
Ā 

What's hot (20)

Histogram of oriented gradients
Histogram of oriented gradientsHistogram of oriented gradients
Histogram of oriented gradients
Ā 
Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...
Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...
Lec7: Medical Image Segmentation (I) (Radiology Applications of Segmentation,...
Ā 
Image segmentation
Image segmentation Image segmentation
Image segmentation
Ā 
After effects-basics
After effects-basicsAfter effects-basics
After effects-basics
Ā 
Semantic Segmentation Methods using Deep Learning
Semantic Segmentation Methods using Deep LearningSemantic Segmentation Methods using Deep Learning
Semantic Segmentation Methods using Deep Learning
Ā 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
Ā 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformation
Ā 
image denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transformimage denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transform
Ā 
introduction to Digital Image Processing
introduction to Digital Image Processingintroduction to Digital Image Processing
introduction to Digital 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
Ā 
Content Based Image Retrieval
Content Based Image Retrieval Content Based Image Retrieval
Content Based Image Retrieval
Ā 
Applications of Digital image processing in Medical Field
Applications of Digital image processing in Medical FieldApplications of Digital image processing in Medical Field
Applications of Digital image processing in Medical Field
Ā 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
Ā 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Ā 
Image Processing Using MATLAB
Image Processing Using MATLABImage Processing Using MATLAB
Image Processing Using MATLAB
Ā 
Image processing ppt
Image processing pptImage processing ppt
Image processing ppt
Ā 
Feature detection - Image Processing
Feature detection - Image ProcessingFeature detection - Image Processing
Feature detection - Image Processing
Ā 
Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniques
Ā 
Medical Image Processing
Medical Image ProcessingMedical Image Processing
Medical Image Processing
Ā 

Viewers also liked

Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLABvkn13
Ā 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlabAshutosh Shahi
Ā 
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 MATLABRay Phan
Ā 
Matlab Working With Images
Matlab Working With ImagesMatlab Working With Images
Matlab Working With Imagesmatlab Content
Ā 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab Amr Rashed
Ā 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image ProcessingSahil Biswas
Ā 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to MatlabAmr Rashed
Ā 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introductionideas2ignite
Ā 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic TutorialMuhammad Rizwan
Ā 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABIntroduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABSriram Emarose
Ā 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsRay Phan
Ā 
Libro de MATLAB
Libro de MATLABLibro de MATLAB
Libro de MATLABguestecaca7
Ā 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLABRavikiran A
Ā 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaAbee Sharma
Ā 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing BasicsNam Le
Ā 
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisDSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisAmr E. Mohamed
Ā 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processingHossain Md Shakhawat
Ā 
Matlab tme series benni
Matlab tme series benniMatlab tme series benni
Matlab tme series bennidvbtunisia
Ā 

Viewers also liked (20)

Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
Ā 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
Ā 
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
Ā 
Matlab Working With Images
Matlab Working With ImagesMatlab Working With Images
Matlab Working With Images
Ā 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab
Ā 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
Ā 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
Ā 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
Ā 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
Ā 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABIntroduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
Ā 
Brainsense -Brain computer Interface
Brainsense -Brain computer InterfaceBrainsense -Brain computer Interface
Brainsense -Brain computer Interface
Ā 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & Scientists
Ā 
Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
Ā 
Libro de MATLAB
Libro de MATLABLibro de MATLAB
Libro de MATLAB
Ā 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Ā 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi Sharma
Ā 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
Ā 
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier AnalysisDSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
DSP_FOEHU - MATLAB 02 - The Discrete-time Fourier Analysis
Ā 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
Ā 
Matlab tme series benni
Matlab tme series benniMatlab tme series benni
Matlab tme series benni
Ā 

Similar to Getting started with image processing using Matlab

Gettingstartedwithmatlabimageprocessing
GettingstartedwithmatlabimageprocessingGettingstartedwithmatlabimageprocessing
Gettingstartedwithmatlabimageprocessingtvanii
Ā 
Python for Data Science with Anaconda
Python for Data Science with AnacondaPython for Data Science with Anaconda
Python for Data Science with AnacondaTravis Oliphant
Ā 
New directions for mahout
New directions for mahoutNew directions for mahout
New directions for mahoutMapR Technologies
Ā 
Model-based GUI testing using UPPAAL
Model-based GUI testing using UPPAALModel-based GUI testing using UPPAAL
Model-based GUI testing using UPPAALUlrik HĆørlyk Hjort
Ā 
SequenceL Auto-Parallelizing Toolset Intro slideshare
SequenceL Auto-Parallelizing Toolset Intro slideshareSequenceL Auto-Parallelizing Toolset Intro slideshare
SequenceL Auto-Parallelizing Toolset Intro slideshareDoug Norton
Ā 
SequenceL intro slideshare
SequenceL intro slideshareSequenceL intro slideshare
SequenceL intro slideshareDoug Norton
Ā 
C++ and Assembly: Debugging and Reverse Engineering
C++ and Assembly: Debugging and Reverse EngineeringC++ and Assembly: Debugging and Reverse Engineering
C++ and Assembly: Debugging and Reverse Engineeringcorehard_by
Ā 
Tales from a radically polyglot team
Tales from a radically polyglot teamTales from a radically polyglot team
Tales from a radically polyglot teamThoughtworks
Ā 
Boston hug-2012-07
Boston hug-2012-07Boston hug-2012-07
Boston hug-2012-07Ted Dunning
Ā 
New Directions for Mahout
New Directions for MahoutNew Directions for Mahout
New Directions for MahoutTed Dunning
Ā 
Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...
Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...
Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...Positive Hack Days
Ā 
Machine Learning - What, Where and How
Machine Learning - What, Where and HowMachine Learning - What, Where and How
Machine Learning - What, Where and Hownarinderk
Ā 
Neural networks - BigSkyDevCon
Neural networks - BigSkyDevConNeural networks - BigSkyDevCon
Neural networks - BigSkyDevConryanstout
Ā 
Scaling Python to CPUs and GPUs
Scaling Python to CPUs and GPUsScaling Python to CPUs and GPUs
Scaling Python to CPUs and GPUsTravis Oliphant
Ā 
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...Amazon Web Services
Ā 
Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...
Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...
Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...Edureka!
Ā 
Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...
Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...
Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...Aditya Yadav
Ā 

Similar to Getting started with image processing using Matlab (20)

Gettingstartedwithmatlabimageprocessing
GettingstartedwithmatlabimageprocessingGettingstartedwithmatlabimageprocessing
Gettingstartedwithmatlabimageprocessing
Ā 
Tms320 f2812
Tms320 f2812Tms320 f2812
Tms320 f2812
Ā 
Python for Data Science with Anaconda
Python for Data Science with AnacondaPython for Data Science with Anaconda
Python for Data Science with Anaconda
Ā 
New directions for mahout
New directions for mahoutNew directions for mahout
New directions for mahout
Ā 
Model-based GUI testing using UPPAAL
Model-based GUI testing using UPPAALModel-based GUI testing using UPPAAL
Model-based GUI testing using UPPAAL
Ā 
SequenceL Auto-Parallelizing Toolset Intro slideshare
SequenceL Auto-Parallelizing Toolset Intro slideshareSequenceL Auto-Parallelizing Toolset Intro slideshare
SequenceL Auto-Parallelizing Toolset Intro slideshare
Ā 
SequenceL intro slideshare
SequenceL intro slideshareSequenceL intro slideshare
SequenceL intro slideshare
Ā 
C++ and Assembly: Debugging and Reverse Engineering
C++ and Assembly: Debugging and Reverse EngineeringC++ and Assembly: Debugging and Reverse Engineering
C++ and Assembly: Debugging and Reverse Engineering
Ā 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
Ā 
Tales from a radically polyglot team
Tales from a radically polyglot teamTales from a radically polyglot team
Tales from a radically polyglot team
Ā 
Boston hug-2012-07
Boston hug-2012-07Boston hug-2012-07
Boston hug-2012-07
Ā 
New Directions for Mahout
New Directions for MahoutNew Directions for Mahout
New Directions for Mahout
Ā 
MATLAB and HDF-EOS
MATLAB and HDF-EOSMATLAB and HDF-EOS
MATLAB and HDF-EOS
Ā 
Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...
Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...
Š•ŃŠ»Šø Š½Š°ŃˆŠ»Š°ŃŃŒ Š¾Š“Š½Š° Š¾ŃˆŠøŠ±ŠŗŠ° ā€” ŠµŃŃ‚ŃŒ Šø Š“руŠ³ŠøŠµ. ŠžŠ“ŠøŠ½ сŠæŠ¾ŃŠ¾Š± Š²Ń‹ŃŠ²Šøть Ā«Š½Š°ŃŠ»ŠµŠ“уŠµŠ¼Ń‹ŠµĀ» у...
Ā 
Machine Learning - What, Where and How
Machine Learning - What, Where and HowMachine Learning - What, Where and How
Machine Learning - What, Where and How
Ā 
Neural networks - BigSkyDevCon
Neural networks - BigSkyDevConNeural networks - BigSkyDevCon
Neural networks - BigSkyDevCon
Ā 
Scaling Python to CPUs and GPUs
Scaling Python to CPUs and GPUsScaling Python to CPUs and GPUs
Scaling Python to CPUs and GPUs
Ā 
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Deep Learning for Developers: An Introduction, Featuring Samsung SDS (AIM301-...
Ā 
Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...
Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...
Deep Learning Tutorial | Deep Learning Tutorial for Beginners | Neural Networ...
Ā 
Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...
Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...
Automatski - How We Reinvented Machine Learning, Solved NP-Complete ML Proble...
Ā 

More from Pantech ProLabs India Pvt Ltd

Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system designPantech ProLabs India Pvt Ltd
Ā 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Pantech ProLabs India Pvt Ltd
Ā 
Brainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interfaceBrainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interfacePantech ProLabs India Pvt Ltd
Ā 

More from Pantech ProLabs India Pvt Ltd (20)

Registration process
Registration processRegistration process
Registration process
Ā 
Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system design
Ā 
Brain Computer Interface
Brain Computer InterfaceBrain Computer Interface
Brain Computer Interface
Ā 
Electric Vehicle Design using Matlab
Electric Vehicle Design using MatlabElectric Vehicle Design using Matlab
Electric Vehicle Design using Matlab
Ā 
Image processing application
Image processing applicationImage processing application
Image processing application
Ā 
Internet of Things using Raspberry Pi
Internet of Things using Raspberry PiInternet of Things using Raspberry Pi
Internet of Things using Raspberry Pi
Ā 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
Ā 
Brain controlled robot
Brain controlled robotBrain controlled robot
Brain controlled robot
Ā 
Brain Computer Interface-Webinar
Brain Computer Interface-WebinarBrain Computer Interface-Webinar
Brain Computer Interface-Webinar
Ā 
Development of Deep Learning Architecture
Development of Deep Learning ArchitectureDevelopment of Deep Learning Architecture
Development of Deep Learning Architecture
Ā 
Future of AI
Future of AIFuture of AI
Future of AI
Ā 
Gate driver design and inductance fabrication
Gate driver design and inductance fabricationGate driver design and inductance fabrication
Gate driver design and inductance fabrication
Ā 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745
Ā 
Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4
Ā 
Waveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSPWaveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSP
Ā 
Interfacing UART with tms320C6745
Interfacing UART with tms320C6745Interfacing UART with tms320C6745
Interfacing UART with tms320C6745
Ā 
Switch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSPSwitch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSP
Ā 
Led blinking using TMS320C6745
Led blinking using TMS320C6745Led blinking using TMS320C6745
Led blinking using TMS320C6745
Ā 
Brainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interfaceBrainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interface
Ā 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
Ā 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
Ā 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
Ā 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Ā 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
Ā 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
Ā 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Ā 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
Ā 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
Ā 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
Ā 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
Ā 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Ā 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
Ā 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
Ā 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
Ā 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
Ā 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
Ā 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
Ā 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
Ā 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Ā 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Ā 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
Ā 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Ā 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Ā 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
Ā 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
Ā 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
Ā 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Ā 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Ā 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
Ā 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Ā 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Ā 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Ā 
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
Ā 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
Ā 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
Ā 

Getting started with image processing using Matlab

  • 2. Introduction ļƒ¼ Cleve molar in 1984, Mathworks inc ļƒ¼ Introduced as a simulation tool ļƒ¼ Supports Graphical Programming ļƒ¼ Can be interfaced with other High Level languages Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 3. Applications ā€¢ Aerospace ā€¢ Biometrics ā€¢ Medical ā€¢ Finance ā€¢ Control System ā€¢ Signal,Image,Audio and Video ā€¢ Neural networks,Fuzzy logic ā€¢ Animation Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 4. List of Companies ā€¢ ADOBE (Photoshop) ā€¢ NASA ā€¢ GE ā€¢ L&T ā€¢ ROBERT BOSCH ā€¢ PEPSI , COCACOLA (Neuro Marketing) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 5. 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() ) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 6. Difference between C and Matlab ā€¢ Matlab is Proprietary compiler,C has open source. ā€¢ Inbuilt Functions in Matlab(Application Oriented). ā€¢ User friendly syntax. ā€¢ Fourth generation Programming Language tool. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 7. Desktop Tools ā€¢ Command Window ā€“ type commands ā€¢ Workspace ā€“ view program variables ā€“ clear to clear ā€“ double click on a variable to see it in the Array Editor ā€¢ Command History ā€“ view past commands ā€“ save a whole session using diary ā€¢ Launch Pad ā€“ access tools, demos and documentation Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 8. Command window Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 9. Change the current working directory Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 10. Arithmetic operators 1) plus - Plus + 2) uplus - Unary plus + 3) minus - Minus - 4) uminus - Unary minus - 5) mtimes - Matrix multiply * 6) times - Array multiply .* 7) mpower - Matrix power ^ 8) power - Array power .^ 9) mldivide - Backslash or left matrix divide 10) mrdivide - Slash or right matrix divide / 11) ldivide - Left array divide . 12) rdivide - Right array divide ./ Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 11. Relational operators 1) eq - Equal == 2) ne - Not equal ~= 3) lt - Less than < 4) gt - Greater than > 5) le - Less than or equal <= 6) ge - Greater than or equal >= Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 12. Logical operators 1) Short-circuit logical AND && 2) Short-circuit logical OR || 3) and - Element-wise logical AND & 4) or - Element-wise logical OR | 5) not - Logical NOT ~ 6) xor - Logical EXCLUSIVE OR 7) any - True if any element of vector is nonzero 8) all - True if all elements of vector are nonzero Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 13. BITWISE OPERATORS 1) bitand - Bit-wise AND. 2) bitcmp - Complement bits. 3) bitor - Bit-wise OR. 4) bitmax - Maximum floating point integer. 5) bitxor - Bit-wise XOR. 6) bitset - Set bit. 7) bitget - Get bit. 8) bitshift - Bit-wise shift. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 14. Vectors a = [1 2 3 4 5 6 9 8 7] ; t = 0:2:20 t = 0 2 4 6 8 10 12 14 16 18 20 b=a+2 b = 3 4 5 6 7 8 11 10 9 c=a+b c = 4 6 8 10 12 14 20 18 16 Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 15. Matrices B = [1 2 3 4;5 6 7 8;9 10 11 12] ; B=1234 5678 9 10 11 12 C = B' C=159 2 6 10 3 7 11 4 8 12 Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 16. Basic matrix operators X = inv(E) ;%INVERSE OF THE MATRIX [A,H] = eig(E) %eigen value &vector p = poly(E) %polynomial c = abs(y) ; D=min(a); D=max(a); ā€¢ Convolution x = [1 2]; y = [1 4 8]; z = conv(x,y) [xx, R] = deconv(z,y) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 17. PLOT t=0:0.25:7; y = sin(t); plot(t,y) ; xlabel('x axis'); ylabel('y axis'); title('Heading'); grid on; gtext('text'); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 18. IF LOOP a=6; if a > 6 disp('a is greater'); elseif a==0 disp('a is zero'); else disp('a is smaller'); end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 19. FOR LOOP a=5; for i=1:5 a=a+1 end disp(a); ANS a =10 Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 20. While Loop a=5; while a < 10 a=a+1; end disp(a); Ans a =10 Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 21. Function function c=add(a,b); function c=mul(a,b); c=a+b; c=a*b; return return Main a=5; b=6; c=add(a,b); disp(c); d=mul(a,b); disp(d); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 22. SWITCH CASE method = 'Bilinear'; switch lower(METHOD) case {'linear','bilinear'} disp('Method is linear') case 'cubic' disp('Method is cubic') case 'nearest' disp('Method is nearest') otherwise disp('Unknown method.') end Ans Method is linear Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 23. SWITCH (NUMERICAL) a=input('enter---->'); switch a case 1 fprintf('one'); case 2 fprintf('two'); case 3 fprintf('three'); case 4 fprintf('four'); otherwise fprintf('otherwise'); end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 24. How to read an image a =imread('cameraman.tif'); a =imread('flowers.tif'); imshow(a); imshow(a); pixval on; pixval on; Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 25. How to read an audio file a =wavread('test.wav'); wavplay(a,44100); Plot(a); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 26. How to read an video file a=aviread('movie.avi'); movie(a); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 27. Add two images I = imread('rice.tif'); I = imread('rice.tif'); J = imread('cameraman.tif'); K = imadd(I,J,'uint16'); J = imadd(I,50); imshow(K,[]) subplot(1,2,1), imshow(I) subplot(1,2,2), imshow(J) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 28. Subtract two images I = imread('rice.tif'); Iq = imsubtract(I,50); subplot(1,2,1), imshow(I) subplot(1,2,2), imshow(Iq) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 29. Convert image to gray and binary clc; clear; close all a= imread('flowers.tif'); 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); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 30. RGB component a=imread('flowers.tif'); 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); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 31. Convert Image into One dimensional a = imread('cameraman.tif'); [r c]=size(a); Len=r*c; b=reshape(a,[1 Len]); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 32. CONVER MOVIE TO FRAMES file=aviinfo('movie1.avi'); % to get inforamtaion abt video file frm_cnt=file.NumFrames % No.of frames in the video file str2='.bmp' h = waitbar(0,'Please wait...'); for i=1:frm_cnt frm(i)=aviread(filename,i); % read the Video file frm_name=frame2im(frm(i)); % Convert Frame to image file frm_name=rgb2gray(frm_name);%convert gray filename1=strcat(strcat(num2str(i)),str2); imwrite(frm_name,filename1); % Write image file waitbar(i/frm_cnt,h) end close(h) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 33. CONVERT FRAMES TO MOVIES frm_cnt=5; number_of_frames=frm_cnt; filetype='.bmp'; display_time_of_frame=1; mov = avifile('MOVIE.avi'); count=0; for i=1:number_of_frames name1=strcat(num2str(i),filetype); a=imread(name1); while count<display_time_of_frame count=count+1; imshow(a); F=getframe(gca); mov=addframe(mov,F); end count=0; end mov=close(mov); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 34. How to read a text file fid = fopen('message.txt','r'); ice1= fread(fid); s = char(ice1'); fclose(fid); disp(s); Ans hello Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 35. How to write a text file txt=[65 67 68 69]; fid = fopen('output.txt','wb'); fwrite(fid,char(txt),'char'); fclose(fid); ANS =ACDE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 36. Store an Image,Audio a =imread('cameraman.tif'); imwrite(a,'new.bmp'); a=wavread('test.wav'); wavwrite(d,44100,16,'nTEST.WAV'); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 37. SAVE AND LOAD THE VARIABLE A=5; save A A; load A B=1; C=A+B; disp(C); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 38. Wavelet transform a =imread('cameraman.tif'); [LL LH HL HH]=dwt2(a,'haar'); Dec=[... LL,LH HL,HH ... ]; imshow(Dec,[]); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 39. DCT transform a=imread('cameraman.tif'); subplot(1,3,1);imshow(a,[]); b=dct2(a); subplot(1,3,2);imshow(b,[]);title('DCT'); c=idct2(b); subplot(1,3,3);imshow(c,[]);title('IDCT'); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 40. NOISE AND FILTER I = imread('eight.tif'); J = imnoise(I,'salt & pepper',0.02); K = medfilt2(J); subplot(1,2,1);imshow(J) subplot(1,2,2);imshow(K) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 41. GUI Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 42. DIALOG BOX warndlg('hello'); helpdlg('hello'); errordlg('hello'); msgbox('hello'); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 43. ButtonName=questdlg('What is your wish?', ... 'Genie Question', ... 'Food','Clothing','Money','Money'); switch ButtonName, case 'Food', disp('Food is delivered'); case 'Clothing', disp('The Emperor''s new clothes have arrived.') case 'Money', disp('A ton of money falls out the sky.'); end % switch Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 44. USER INTERFACE GET FILE [filename, pathname] = uigetfile('*.m', 'Pick an M-file'); if isequal(filename,0) | isequal(pathname,0) disp('User pressed cancel') else disp(['User selected ', fullfile(pathname, filename)]) end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 45. USER INTERFACE PUT FILE [filename, pathname] = uiputfile('*.m', 'Pick an M-file'); if isequal(filename,0) | isequal(pathname,0) disp('User pressed cancel') else disp(['User selected ', fullfile(pathname, filename)]) end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 46. GUI Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 47. GUIā€¦ Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 48. MENU BAR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 49. PUSH BUTTON Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 50. TOGGLE BUTTON Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 51. RADIO BUTTON Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 52. CHECKBOX Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 53. EDIT TEXT Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 54. STATIC TEXT Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 55. SLIDER Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 56. FRAME Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 57. LISTBOX Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 58. POPUP MENU Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 59. AXES Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 60. ALIGN OBJECTS Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 61. MENU EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 62. M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 63. PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 64. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 65. RUN Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 66. EMPTY GUI Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 67. GENERATED M FILE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 68. PUSH BUTTON Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 69. RIGHT CLICK PUSH BUTTON & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 70. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 71. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 72. RIGHT CLICK PUSH BUTTON & GO FOR M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 73. GO FOR CALLBACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 74. WRITE THE CODE BELOW THE CALLBACK a =imread('cameraman.tif'); imshow(a); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 75. RUN THE PROGRAM OR PRESS F5 Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 76. CHOOSE AXES Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 77. CHOOSE AXES Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 78. RIGHT CLICK AXES & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 79. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 80. WRITE THE CODE BELOW THE a =imread('cameraman.tif'); CALLBACK axes(handles.one); imshow(a); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 81. RUN THE PROGRAM Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 82. CODE a =imread('cameraman.tif'); axes(handles.one); imshow(a); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 83. TOGGLE BUTTON Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 84. RIGHT CLICK TOGGLE & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 85. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 86. RIGHT CLICK TOGGLE & GO FOR M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 87. WRITE THE CODE BELOW THE CALLBACK a=get(hObject,'Value'); if a ==1 a =imread('cameraman.tif'); axes(handles.one); imshow(a); else a =imread('greens.jpg'); axes(handles.one); imshow(a); end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 88. RUN THE PROGRAM Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 89. RIGHT CLICK RADIO BUTTON & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 90. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 91. RIGHT CLICK CHECK BOX & GO FOR MFILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 92. WRITE THE CODE BELOW THE CALLBACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 93. RUN THE PROGRAM Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 94. RIGHT CLICK CHECK BOX & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 95. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 96. RIGHT CLICK CHECK BOX & GO FOR M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 97. WRITE THE CODE BELOW THE CALLBACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 98. RUN THE PROGRAM Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 99. RIGHT CLICK FRAME & SEND TO BACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 100. RUN THE PROGRAM Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 101. RIGHT CLICK LIST BOX & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 102. EDIT THE STRING OPTIONS Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 103. RIGHT CLICK LIST BOX & GO FOR M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 104. WRITE THE CODE BELOW THE CALLBACK contents = get(hObject,'Value') switch contents case 1 a =imread('cameraman.tif'); axes(handles.one); imshow(a); case 2 a =imread('flowers.tif'); axes(handles.one); imshow(a); case 3 a =imread('rice.tif'); axes(handles.one); imshow(a); otherwise a =imread('mri.tif'); axes(handles.one); imshow(a); end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 105. CHOOSE POPUPMENU Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 106. RIGHT CLICK POPUP MENU & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 107. EDIT THE STRING OPTIONS Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 108. WRITE THE CODE contents = get(hObject,'Value') switch contents case 1 a =imread('cameraman.tif'); axes(handles.one); imshow(a); case 2 a =imread('flowers.tif'); axes(handles.one); imshow(a); case 3 a =imread('rice.tif'); axes(handles.one); imshow(a); otherwise a =imread('mri.tif'); axes(handles.one); imshow(a); end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 109. RIGHT CLICK EDIT TEXT & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 110. EDIT STRING AND TAG Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 111. RIGHT CLICK EDIT TEXT & GO FOR M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 112. RIGHT CLICK AXES & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 113. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 114. WRITE THE CODE BELOW THE CALLBACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 115. WRITE THE CODE BELOW THE CALLBACK a=get(hObject,'String') ; b=char(a); c=imread(b); axes(handles.one); imshow(c); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 116. RIGHT CLICK STATIC TEXT & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 117. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 118. WRITE THE CODE BELOW THE CALLBACK a=get(hObject,'String') ; set(handles.t1,'String',a); b=char(a); c=imread(b); axes(handles.one); imshow(c); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 119. SLIDER Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 120. RIGHT CLICK SLIDER & GO FOR PROPERTY INSPECTOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 121. DROP TWO AXES Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 122. DROP PUSH BUTTON Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 123. CHANGE THE STRING AND TAG VALUE Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 124. GO FOR CALLBACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 125. WRITE THE CODE BELOW THE CALLBACK [filename, pathname] = uigetfile('*.bmp', 'Pick an Image'); if isequal(filename,0) | isequal(pathname,0) warndlg('User pressed cancel') else a=imread(filename); axes(handles.axes1); imshow(a); handles.filename=filename; guidata(hObject, handles); end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 126. RIGHT CLICK SLIDER & GO FOR M FILE EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 127. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 128. WRITE THE CODE BELOW THE CALLBACK Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 129. RUN THE PROGRAM a=get(hObject,'Value'); filename =handles.filename; I = imread(filename); J = imadd(I,50); axes(handles.axes2); imshow(J) Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 130. MENU EDITOR Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 131. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 132. EDIT STRING AND TAG Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 133. RUN Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 134. Counting the Number of Objects in an Image clc; clear; close all; InputImage=imread('eight.tif'); subplot(2,2,1); imshow(InputImage);title('InputImage'); BinaryImage=im2bw(InputImage); subplot(2,2,2); imshow(BinaryImage); ComplementImage=imcomplement(BinaryImage); subplot(2,2,3); imshow(ComplementImage); HolesClearedImage = imfill(ComplementImage,'holes'); subplot(2,2,4); imshow(HolesClearedImage);title('HolesClearedImage'); [L,Num] = bwlabel(HolesClearedImage) for i=1:Num figure; imshow(L==i); pause(1) end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 135. Thresholding Based Segmentation- Con 1 ā€¢ clc; ā€¢ clear; ā€¢ close all; ā€¢ InputImage=imread('34.bmp'); ā€¢ figure; ā€¢ imshow(InputImage); ā€¢ ColourSpaceConversion=rgb2hsv(InputImage); ā€¢ imshow(ColourSpaceConversion); ā€¢ %GrayScaleImage=rgb2gray(ColourSpaceConversion); ā€¢ GrayScaleImage=ColourSpaceConversion(:,:,1); ā€¢ [rows columns planes]=size(GrayScaleImage); ā€¢ BinaryMask= GrayScaleImage > 0.5; ā€¢ figure; ā€¢ imshow(BinaryMask); ā€¢ Impixelinfo ā€¢ h = waitbar(0,'Please wait...'); ā€¢ SegmentedImage=[]; Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 136. Cont 2 for i=1:rows for j=1:columns if BinaryMask(i,j) == 1 SegmentedImage(i,j,1)=InputImage(i,j,1); SegmentedImage(i,j,2)=InputImage(i,j,2); SegmentedImage(i,j,3)=InputImage(i,j,3); else SegmentedImage(i,j,1)=0; SegmentedImage(i,j,2)=0; SegmentedImage(i,j,3)=0; end end waitbar(i/rows,h) end SegmentedImage=uint8(SegmentedImage); figure; imshow(SegmentedImage); impixelinfo; Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 137. Image Fusion clc; clear; close all; M1=imread('mri.jpg'); M2=imread('ct.jpg'); subplot(2,2,1);imshow(M1);title('MRI'); subplot(2,2,2);imshow(M2);title('CT'); [R C P]=size(M1); for i=1:R for j=1:C if M1(i,j)>M2(i,j) FusedImage(i,j)=M1(i,j); else FusedImage(i,j)=M2(i,j); end end end Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 138. Image fusion-Cont 2 subplot(2,2,3);imshow(FusedImage);title('Max'); for i=1:R for j=1:C if M1(i,j)>M2(i,j) FusedImage(i,j)=M2(i,j); else FusedImage(i,j)=M1(i,j); end end end subplot(2,2,4);imshow(FusedImage);title('Min'); Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 139. Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.
  • 140. For more details ā€“ www.pantechsolutions.net ā€“ http://www.slideshare.net/pantechsolutions ā€“ http://www.scribd.com/pantechsolutions ā€“ http://www.youtube.com/pantechsolutions Technology beyond the Dreamsā„¢ Copyright Ā© 2006 Pantech Solutions Pvt Ltd.