flipkart ads

MATLAB TUTORIAL NINE

Image Processing using SIMULINK


Introduction:
Simulink is very much user friendly if you are convergent with image processing operations.

  Type simulink command on the command prompt
  Click on Computer Vision System toolbox
  There are various options available in this tool box, go through all the
  options one by one.

We will use following blocks in this experiment ….

[1] Computer Vision System Toolbox > Sources>Image from file
[2] Computer Vision System Toolbox > Sinks>Video Viewer
[3] Simulink > Math Operations > Matrix Concatenate
[4] Computer Vision System Toolbox > Statistics>Histogram
[5] DSP System Toolbox > Signal Processing Sinks > Vector Scope


Select Image file by clicking on image block. Set following parameters in image block :

  Sample time = inf 
  Image signal = Separate color signals
  Output port labels: = R|G|B
  Output data type: = double

Set following parameters in histogram block:

  Lower limit of histogram: 0
  Upper limit of histogram: 1
  Number of bins: = 256

Set following parameters in matrix concatenate block:

  Number of input parameters: 3

Set following parameters in Vector scope

  Scope Properties pane, Input domain = User-defined
  Display Properties pane, clear the Frame number check box
  Display Properties pane, select the Channel legend check box
  Display Properties pane, select the Compact display check box
  Axis Properties pane, clear the Inherit sample increment from input check box.
  Axis Properties pane, Minimum Y-limit = 0
  Axis Properties pane, Maximum Y-limit = 1
  Axis Properties pane, Y-axis label = Count
  Line Properties pane, Line markers = .|s|d
  Line Properties pane, Line colors = [1 0 0]|[0 1 0]|[0 0 1]

Open the Configuration dialog box by selecting Configuration Parameters from the Simulation menu. 
Set the parameters as follows:

  Solver pane, Stop time = 0
  Solver pane, Type = Fixed-step
  Solver pane, Solver = Discrete (no continuous states)

Run simulation and see result on vector scope. Change file and do experiment again.










No comments:

Post a Comment

flipkart products