Digital Image Processing: Practical 2 Part B

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

DIGITAL IMAGE PROCESSING

PRACTICAL 2
PART B
Title: Generation of skewness using Erdas imagine model maker.

Steps/Methodology:

1.Select Modeler icon from the main menu.

2.In pull down menu (spatial modeler), click to Model


Maker.
3. Create a flow chart in the New Model window using
the icons available in the associated icon. (icons are
available for input/ output of raster image, vector image,
matrix[a mesh], table, scaler quantity[a circle with a
mesh within], operations [a circle] and for connecting the
different icons [arrow]).[Simply click once at the
available icon. After bringing the cursor at the New
Model windowand click again. The selected icon will
appear in the New Model window. Do this, till thedesired
flowchart gets prepared in the New Model window.]

4. After the flow chart got prepared, provide input by


double clicking to the input icon and select input file
through browsing.
5. Double click to the output icon, to provide a name of
the file for output through browsing.

6. Double click to the operation icon. A function


definition window will appear.
7.In function definition window, either built-in
functions (like Correlation coefficient, Covariance matrix etc)
may be selected or write own function/formula (like
skewness and kurtosis in the appropriate sub-window and
select the name of the file/s to be operated on.

Observations/ Inputs:

Code for skewness :


1.) - (($n1_v1 - GLOBAL MEAN ( $n1_v1 ) )/ GLOBAL SD ( $n1_v1 ) ) ** 3
2.) - ( GLOBAL SUM ( $n3_v2 ) / (NUMCOLS ( $n3_v2 ) *NUMROWS
( $n3_v2) ))
Processing:
Output: Image of v2:
Value of skewness:

You might also like