Professional Documents
Culture Documents
{
f r I ( x , y )= 255 V −96 96 ≤V < 128
32
255 128 ≤V ≤ 255
(2)
boundaries. The number of pixels added or removed
from the objects in an image depends on the size and
shape of the structuring element used to process the
image. In the morphological dilation and erosion
operations, the state of any given pixel in the output
0 0 ≤V <32 image is determined by applying a rule to the
{
V −32 corresponding pixel and its neighbours in the input
255 32≤ V <64 image. The rule used to process the pixels defines the
32
operation as dilation or erosion. This table lists the
f g I ( x , y )= 25564 ≤V <128
(3) rules for both dilation and erosion.
192−V
255 128 ≤V <192
64 3. Wavelets transform:
V −192
255 192 ≤V ≤ 255
64 The Daubechies wavelets, based on the work
of Ingrid Daubechies, are a family of orthogonal
wavelets defining a discrete wavelet transform and
255 V /32 0 ≤V < 32 characterized by a maximal number of
{
25532 ≤ V < 64 vanishing moments for some given support. With
96−V each wavelet type of this class, there is a scaling
f g I ( x , y ) = 255 32 64 ≤ V <128 (4) function (called the father wavelet) which generates
0 128 ≤V <192 an orthogonal multiresolution analysis. We are using
V −192 dB5 wavelet of level 2.
255 192 ≤V ≤ 255 The wavelet transform is similar to the Fourier
64
transform (or much more to the windowed Fourier
transform) with a completely different merit function.
2. Morphological operations
The main difference is this: Fourier transform
Pre-processing images commonly involves removing decomposes the signal into sines and cosines, i.e. the
low-frequency background noise, normalizing the functions localized in Fourier space; in contrary the
intensity of the individual particles images, removing wavelet transform uses functions that are localized in
reflections, and masking portions of images. Image both the real and Fourier space. Generally, the
pre-processing is the technique of enhancing data wavelet transform can be expressed by the following
images prior to computational processing. equation:
Morphological operation like dilution and erosion are
∞
performed on noise removed image. Morphology is a
F ( a , b )=∫ f ( x ) ψ ¿ (a ,b ) ( x ) dx
broad set of image processing operations that process −∞
images based on shapes. Morphological operations
apply a structuring element to an input image,
creating an output image of the same size. In a
Where the * is the complex conjugate symbol and 1
f ( x , y )= g(r , c )
function ψ is some function. This function can be mn (r∑
, c)ϵW
chosen arbitrarily provided that it obeys certain rules.
Where ‘g’ is the noisy image, f(x,y) is the restored
image, and ‘r’ and ‘c’ are the row and column
4. Feature extraction:
coordinates respectively, within a window ‘W’ of
Following operations are performed to extract size ‘m×n’ where the operation takes place.
features from input image.
f) Standard Deviation
a) Contrast
It is a most widely used measure of variability or
N−1 diversity used in statistics. In terms of image
contrast = ∑ Pij ¿ ¿ processing it shows how much variation or
i , j=0 "dispersion" exists from the average (mean, or
expected value). A low standard deviation indicates
b) Correlation that the data points tend to be very close to the mean,
whereas high standard deviation indicates that the
Correlation is a method for establishing the degree of data points are spread out over a large range of
probability that a linear relationship exists between values. Mathematically standard deviation is given by
two measured quantities. Pearson’s correlation
1 1
coefficient, r, was the first formal correlation measure
and is widely used in statistical analysis, pattern
recognition and image processing. For monochrome
standard deviation=
√ ∑
mn−1 (r ,c)ϵW (
g ( r , c )−
digital images, the Pearson’s correlation coefficient is deviation and assigns this value to the center pixel in
defined as the output map. As it has capability in measuring the
∑ (x i−x m)( yi − y m ) variability, it can be used in edge sharpening, as
r= i intensity level get changes at the edge of image by
large value.
√∑ ¿ ¿ ¿ ¿
i
5. Classification:
c) Energy
I am using IBWC for classification of tissue into
N−1 cancerous or normal. If they are normal tissue or non-
energy= ∑ ( Pij )2 infectious then system displays no tumour detected
i , j=0
on MATLAB output window. If tumour is detected
then following process took place.
d) Homogeneity
step 1 ROI extraction: A region of interest (ROI) is
N−1 a portion of an image that you want to filter
Pij
Homogenity= ∑ ¿ or operate on in some way. The toolbox
i , j=0 1+ ¿ ¿ supports a set of ROI objects that you can
use to create ROIs of many shapes, such
e) Mean circles, ellipses, polygons, rectangles, and
hand-drawn shapes. After creation, you can
In contest of image processing filtering using mean is use ROI object properties to customize their
classified as spatial filtering and used for noise appearance and functioning. In addition, the
reduction. In this section we have discussed about ROI objects support object functions and
various type of mean and analysed their use for events that you can use to implement
removing various type of noise in image processing. interactive behavior. For example, using
events, your application can execute custom
code whenever the ROI changes position. As
a convenience, the toolbox includes a the subjective quality of images is important for
parallel set of convenience functions for ROI human interpretation. Contrast is an important factor
creation. in any subjective evaluation of image quality.
step 2 Circular Haugh transform is used for Contrast is created by the difference in luminance
encircling the affected areas. As large as reflected from two adjacent surfaces. In other words,
possible circle (maximum radius circle) is contrast is the difference in visual properties that
drawn which can contains maximum makes an object distinguishable from other objects
affected areas and then subsequent small and the background. In visual perception, contrast is
circle are drawn. determined by the difference in the colour and
step 3 A circle is chosen with same centre as brightness of the object with other objects.
maximum radius circle from above step with
60% large radius so that it can cover Image Enhancement alters the visual impact that the
complete affected areas called region of image has on the interpreter in a fashion that
interest. improves the information content.
step 4 Thresholding is performed to calculate area a) Contrast enhancement
of tumour cells or relative area of tumour b) Intensity, hue, and saturation
cells. This can be calculated as follows: transformations
no . of tumour pixels c) Density slicing
% Area= X 100 d) Edge enhancement
no . of total brain pixels
e) Making digital mosaics
IV. FLOWCHART f) Producing synthetic stereo images
M N
1
Brightness J = ∑ ∑ f (i , j)
MN i=1 j=1
M N
Contrast C=
√ 1
∑ ∑
MN i=1 j=1
[ f ( i , j )−J ]
2
M, N – image dimensions
f (i,j) – gray level value at (i,j)
Erosion
f ⨁ s=f c ⨁ s rot
REFERENCES