SlideShare a Scribd company logo
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
DOI:10.5121/ijcsit.2015.7605 61
THE EFFECT OF IMPLEMENTING OF NONLINEAR
FILTERS FOR ENHANCING MEDICAL IMAGES USING
MATLAB
Mohamed Y. Adam1
, Dr Mozamel M. Saeed2
, Prof. Dr Al Samani A. Ahmed3
1
king Saud University, TrainingandCommunity Service Center, KSA
2
prince Sattam Bin Abdul-Aziz University, collage of science, Dept. of computer science,
KSA
3
Al Neelain University collage of computer science & information technology, Dept. of
computer science, Sudan
ABSTRACT
Although this huge development in medical imaging tools, we find that there are some human mistakes in
the process of filming medical images, where some errors result in distortions in the image and change
some medical image properties which affect thedisease diagnosis correctly.Medical images are one of the
fundamental images, because they are used in the most sensitive field which is a medical field. The
objective of the study is to identify the effect of implement non-linear filters in enhancingmedical images,
using the strongest and most popular program MATLAB, and because of its advantages in image
processing. After implementation the researcher concluded that we will get the best result for medical
image enhancement by using median filter which is one of the non-linear filters,non-linear filters
implemented using Matlab functions.
KEYWORDS
median filter, noise reduction, maximum filter, minimum filter, enhancement, non-linear filters.
1. INTRODUCTION
Digital Image Processing means using digital computers to correct the appearance of digital
images, correcting the appearance include many activities for example remove noise, smoothing
or sharpening the image, improve the contrast of the image, remove blurring which occurred
during image acquisition.There are many filter techniques, which use to enhance images, and the
enhancement is focus of improving the quality of the image or to obtain certain details. Also
filtering can be used to remove unwanted noise. Certainly in medical image we find salt and
pepper noise.
There is a big collection of functions in MATLABtoolboxthatuse to implement different types of
filters. Some of them are needed in the process of image adjustments and others are responsible
for object recognition. Examples of linear and nonlinear filter including their effects are presented
in Table1. (Ozimek, lectures from Digital image processing, 2010d)
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
62
Category Filter Effect
LINEAR
High-pass filter
Sharpening
Underlining contours
Low-pass filter
Reduction of the noise,
Smoothing out
Laplace's filter Sharpening
Edge detection filter
Detection of all directions
Edges and corners
Corner detection
filter
NON-
LINEAR
Median filter
Noise reduction without
Blur effect
Minimum filter
Decrease the brightness of
the edge objects
Maximum filter
Increase the brightness of
the edge objects
Table 1. Examples of image enhancing filters
1. IMAGE PROCESSING TECHNIQUE
The main categories of digital image processing techniques include
• Image generation
• Image enhancement
• Image restoration.
Image generation is the most popular digital image processing techniques that use to convert an
image into some sort of ordered layout. For example, the reflection created when scanner pick up
an image, by digitizing this reflection the result is a series of pixels. By the result the generation
techniques help project and recognize a scanned image.
Image enhancement is the process that applied to an image so that the result is more suitable than
the original for a specific application.The image properties and the image source will be taking
into account while enhancement process, so the techniques that use to enhance x-ray may not be
suitable for other kind of image.
Image restoration is an area that also deals with improving the appearance of an image. So
enhancement and restoration both are using to improve image appearance, but the image
restoration is objective while image enhancement is a subjective process.
2. IMAGE ENHANCEMENT TECHNIQUE
The main objective of image enhancement is to improve the quality of the image.Certainly in
medical images we will face with more of the following problems:
• The resolution is low.
• Noise high level.
• Contrast is low.
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
63
• geometric deformations;
•presence of imaging artifacts.
The imperfections above can be causedwhile filming the imagefor example X-rays may be low
contrast for soft tissues, ultrasound produces very noisy images, and metallic implants willcause
imaging artifacts in MRI or the result of a deliberate trade-off during acquisition. But in this study
we are focus on the image processing only and not be concerned with the challenging problem of
designing optimal procedures for their acquisition
a. NONLINEAR FILTERING
There are a number of techniques used to remove distortions of images, where the techniques of
nonlinear filters is the most important techniques for their properties, so it does not change the
properties of the image but remove distortions to enhance image clarity and effectiveness. The
linear filters rely on identifying noise and then removed and replaced by the neighborhood points
according to the standard, while other points remain unchanged. The most important nonlinear
filters aremedian filter, minimum filter, and maximum filter, and each one of these filters
characteristics and advantages
b. MEDIAN FILTERING
Median filter is one of the most important from nonlinear filters, it is the popular technique which
use to remove noise certainly the impulsive-type noise, and by the way it has the ability of
preserving image details. The median filter rely on identifying noise and then removed and
replaced by the median of neighborhood pixels, while other points remain unchanged. The
median pixel means the middle pixel value witch considered after sorting all pixel values from
surrounding neighborhood pixels numerically.
In median filter, the pixel value of a point p is replaced by the median of pixel value of 8-
neighbourhood of a point ‘p’. Therefore, we can generate the median filter by the following
function:
g p = median{f p , where	p ∈ N 	 p } (1)
• The median value will replace the central pixel according to brightness of the neighbouring
pixels.
• When some individual pixels have outliers values, noise will raise out such as shot noise or
impulse noise, So median filter can do a good job of removing such noises.
As we can see in figure 1 blow, we can calculate the median value of pixel neighbourhood of
150, and then is replaced with the median of surrounding pixels value that is 124. Here we use
A3x3 square neighbourhood
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
64
Figure 1. Neighbourhood values
Neighborhood values:
115, 119, 120, 123, 124, 125, 126, 127, 150
Median value: 124
The advantages of median filter:
–Since output values available from the present neighborhood, the contrast will not be change.
–Boundaries dose not shift in median filtering, that can happenwith other filters.
–The outliers values will be removed, because the median is less sensitive to the extreme values
than the mean.
c. MINIMUM FILTER
The most effective filter that use to remove positive outline noise is minimum filter, and it'suse
also in the computational of binary morphological erosion. Minimum filter defined as:
Minimum A = min 	A x + i, y + j ,
Where the coordinate x + I, y + j is defined over the image A and the coordinate I, j is defined
over the mask M. The mask M determines which pixels are used in the minimum calculation.
In order to find the darkest points in an image:
First, find the minimum value in the area encompassed by the filter and then reduces the salt
noise because of the minimumoperation;finally, the 0th percentile filter is min filter.
d. MAXIMUM FILTER
The most effective filter that use to remove negative outline noise is maximum filter, and it's use
also in the computational of binary morphological dilation. maximum filter defined as:
Maximum A = max 	A x + i, y + j ,
Where the coordinate x + I, y + j is defined over the image A and the coordinate I, j is defined
over the mask M. The mask M determines which pixels are used in the minimum calculation.
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
In order to find the brightest points in an image:
First finds the maximum value in the
noise because of the maximum operation, finally t
3. RESULTS
The proposed methods have applied on different medical images. Some results are illustrated
below. In each figure, we will see the origin
minimum filter and noisy image filtered by maximum filter and
filter in both tow kinds of images.
Figure 2. Original bone image
Figure 4.Bone image filtered by minimum filter
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
he brightest points in an image:
maximum value in the area encompassed by the filter, and then reduces the pepper
operation, finally the 100th percentile filter is max filter.
The proposed methods have applied on different medical images. Some results are illustrated
we will see the original image, noisy image, noisy image filtered by
noisy image filtered by maximum filter and noisy image filtered by median
filter in both tow kinds of images.
Figure 2. Original bone image Figure 3. Noisy bone image
Figure 4.Bone image filtered by minimum filter Figure 5.Bone image filtered by maximum filter
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
65
educes the pepper
he 100th percentile filter is max filter.
The proposed methods have applied on different medical images. Some results are illustrated
image, noisy image, noisy image filtered by
image filtered by median
Figure 3. Noisy bone image
Figure 5.Bone image filtered by maximum filter
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
Figure
Figure 7.Original chest image
Figure 9. Noisychest image filtered by minimum
filter
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
Figure 6.Bone image filtered by median filter
Figure 7.Original chest image Figure 8.Noisychest image
Figure 9. Noisychest image filtered by minimum Figure 10.Noisychest image filtered by maximum
filter
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
66
Figure 8.Noisychest image
Figure 10.Noisychest image filtered by maximum
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
Figure 11
4. CONCLUSION
In the field of medical image, generally
image input devices. Noises can
techniques remove noise from images so image processi
Therefore image filtering is the main
main aim is to remove the impulse
can see in the results aboveafter implementation,
removing noises of medical images.
5. APPENDEX
k = imread('ches.jpg');
k = rgb2gray(k);
subplot(2,2,1);imshow(
g = imnoise(k,'salt& pepper'
subplot(2,2,2);
imshow(g);title('Noisy Image'
B=zeros(size(g));
modifyA=padarray(g,[1 1]);
a=[1:3]';
b=[1:3]';
forx= 1:size(modifyA,1)
fory=1:size(modifyA,2)
mm=reshape(modifyA(x+a
B(x,y)=min(mm);
end
end
B=uint8(B);
subplot(2,2,3),imshow(B),title(
k = imread('ches.jpg');
k = rgb2gray(k);
subplot(2,2,1);imshow(k),title(
n = imnoise(k,'salt& pepper'
subplot(2,2,2);
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
11.Noisychest image filtered by median filter
generally various noises is added in image while acquiring from
oises can change the properties or generate false output. Image filtering
techniques remove noise from images so image processing algorithm can work effectively.
the main step in most image processing algorithm. In this paper the
main aim is to remove the impulse noise from the medical image using non-linear filters. As we
fter implementation, the median filter has the best results of
removing noises of medical images.
);
subplot(2,2,1);imshow(k),title('ORIGINAL IMAGE');
'salt& pepper');
'Noisy Image')
,[1 1]);
= 1:size(modifyA,1)-2
=1:size(modifyA,2)-2
a-1,y+b-1),[],1);
);
subplot(2,2,3),imshow(B),title('IMAGE AFTER MIN FILTERING'
);
subplot(2,2,1);imshow(k),title('ORIGINAL IMAGE');
'salt& pepper');
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
67
is added in image while acquiring from
or generate false output. Image filtering
ng algorithm can work effectively.
In this paper the
linear filters. As we
best results of
'IMAGE AFTER MIN FILTERING');
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
68
imshow(n);title('Noisy Image')
B=zeros(size(n));
modifyA=padarray(n,[1 1]);
a=[1:3]';
b=[1:3]';
forx= 1:size(modifyA,1)-2
fory=1:size(modifyA,2)-2
mx=reshape(modifyA(x+a-1,y+b-1),[],1);
B(x,y)=max(mx);
end
end
B=uint8(B);
subplot(2,2,3);imshow(B),title('IMAGE AFTER MAX FILTERING');
I = imread('ches.jpg');
subplot(2,2,1);
imshow(I);
title('Original Image')
J = imnoise(I,'salt& pepper',0.02);
subplot(2,2,2)
subimage(J)
title('Noisy Image')
L = medfilt2(J,[3 3]);
subplot(2,2,3);
imshow(L)
title('Noisy Image filtered by median filter')
REFERENCES
[1] D.A. Forsyth and J. Ponce, Computer Vision – A Modern Approach, Prentice Hall, 2003
[2] Gregory d Abram, Parallel image generation, with anti aliasing and texturing. University of North
Crolina Chapel Hill NC27599-3175
[3] Harley R Myler, Arthur R. Weeks, "The Pocket Handbook of Image Processing in C", Prentice Hall
1993
[4] Image Processing using Matlab. Second Edition. United States of America. Gatesmark Publishing.
[5] Mohamed Y. Adam, Mozamel M. Saeed and Al Samani A. Ahmed, "Medical Image Enhancement
Application Using Histogram Equalization in Computational Libraries”,
http://www.ijcst.org/Volume6/Issue1/p2_6_1.pdf
[6] Mrozek, Bogumiła – Mrozek, Zbigniew 2001. Matlab 6; Poradnikużytkownika.
[7] Nayan Patel, Abhishek Shah, MayurMistry, "Astudy of Digital Image Filtering Techniques in Spatial
Image Processing", International Conference on Convergence of Technology - 2014
[8] Ozimek, Agnieszka 2010b. Digital image processing. Materials from Lecture no. 7. Cracow. Cracow
University of Technology
[9] Processing using Matlab. Second Edition. United States of America. Gatesmark Publishing
[10] Rafael C. Gonzalez and Richard E. Woods, Digital image processing, Third edition, Prentice Hall,
2008
[11] Rakesh M.R, Ajeya B, Mohan A.R,"Hybrid Median Filter for Impulse NoiseRemoval of an Image in
Image Restoration",International Journal of Advanced Research in Electrical,Electronics and
International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015
69
Instrumentation Engineering, Vol. 2, Issue 10, October 2013,
http://ijareeie.com/upload/2013/october/8QHybrid.pdf
[12] Sigurdangenent, ericpichon, and allentannenbaum, "mathematical methods in medical image
processing", http://www.math.wisc.edu/~angenent/preprints/medicalBAMS.pdf
[13] The MarthWorks 2009. Image Processing Toolbox 6 User’s Guide. United States of America. The
MathWorks.
[14] Warner and David , Digital Image processing – an analytic approach Prentice Hall ,2003

More Related Content

PDF
Survey on Noise Removal in Digital Images
PDF
The Performance Analysis of Median Filter for Suppressing Impulse Noise from ...
PDF
Instant fracture detection using ir-rays
PDF
Performance of Various Order Statistics Filters in Impulse and Mixed Noise Re...
PDF
An Efficient Image Denoising Approach for the Recovery of Impulse Noise
PDF
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
PDF
A new methodology for sp noise removal in digital image processing
PDF
Ap4301221223
Survey on Noise Removal in Digital Images
The Performance Analysis of Median Filter for Suppressing Impulse Noise from ...
Instant fracture detection using ir-rays
Performance of Various Order Statistics Filters in Impulse and Mixed Noise Re...
An Efficient Image Denoising Approach for the Recovery of Impulse Noise
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
A new methodology for sp noise removal in digital image processing
Ap4301221223

What's hot (19)

PDF
Numerical simulation of flow modeling in ducted axial fan using simpson’s 13r...
PDF
A new tristate switching median filtering technique for image enhancement
PDF
A literature review of various techniques available on Image Denoising
PDF
A COMPARATIVE STUDY ALGORITHM FOR NOISY IMAGE RESTORATION IN THE FIELD OF MED...
PDF
I010324954
PDF
Filter technique of medical image on multiple morphological gradient method
PPTX
Basic Medical Imaging Processing and Analysis
PDF
International Journal of Computational Engineering Research(IJCER)
PDF
IRJET- Analytical Study of Various Filters in Lung CT Images
PDF
Paper id 28201445
PDF
Image De-noising and Enhancement for Salt and Pepper Noise using Genetic Algo...
PDF
A Decision tree and Conditional Median Filter Based Denoising for impulse noi...
DOCX
Efficient analysis mri us 1
PDF
HYBRID APPROACH FOR NOISE REMOVAL AND IMAGE ENHANCEMENT OF BRAIN TUMORS IN MA...
PDF
Authentication of Degraded Fingerprints Using Robust Enhancement and Matching...
PDF
Adaptive approach to retrieve image affected by impulse noise
PDF
A HYBRID APPROACH BASED SEGMENTATION TECHNIQUE FOR BRAIN TUMOR IN MRI IMAGES
PDF
Noise processing methods for Media Processor SOC
PDF
Image Noise Removal by Dual Threshold Median Filter for RVIN
Numerical simulation of flow modeling in ducted axial fan using simpson’s 13r...
A new tristate switching median filtering technique for image enhancement
A literature review of various techniques available on Image Denoising
A COMPARATIVE STUDY ALGORITHM FOR NOISY IMAGE RESTORATION IN THE FIELD OF MED...
I010324954
Filter technique of medical image on multiple morphological gradient method
Basic Medical Imaging Processing and Analysis
International Journal of Computational Engineering Research(IJCER)
IRJET- Analytical Study of Various Filters in Lung CT Images
Paper id 28201445
Image De-noising and Enhancement for Salt and Pepper Noise using Genetic Algo...
A Decision tree and Conditional Median Filter Based Denoising for impulse noi...
Efficient analysis mri us 1
HYBRID APPROACH FOR NOISE REMOVAL AND IMAGE ENHANCEMENT OF BRAIN TUMORS IN MA...
Authentication of Degraded Fingerprints Using Robust Enhancement and Matching...
Adaptive approach to retrieve image affected by impulse noise
A HYBRID APPROACH BASED SEGMENTATION TECHNIQUE FOR BRAIN TUMOR IN MRI IMAGES
Noise processing methods for Media Processor SOC
Image Noise Removal by Dual Threshold Median Filter for RVIN
Ad

Similar to THE EFFECT OF IMPLEMENTING OF NONLINEAR FILTERS FOR ENHANCING MEDICAL IMAGES USING MATLAB (20)

PDF
Iaetsd literature review on efficient detection and filtering of high
PDF
A SURVEY : On Image Denoising and its Various Techniques
PDF
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
PDF
A Novel Approach For De-Noising CT Images
PDF
Adaptive denoising technique for colour images
PDF
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
PDF
A017230107
PDF
A STUDY OF SPECKLE NOISE REDUCTION FILTERS
PDF
Performance analysis of image filtering algorithms for mri images
PDF
Performance analysis of image filtering algorithms for mri images
PDF
Hk3513021306
PDF
IMAGE DENOISING USING HYBRID FILTER
PDF
Techniques of Brain Cancer Detection from MRI using Machine Learning
PPTX
Image Filtering
DOCX
final_project
DOCX
Documentation
PDF
A Proposed Framework to De-noise Medical Images Based on Convolution Neural N...
PDF
[IJCT-V3I2P34] Authors: Palwinder Singh
PDF
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
PDF
IRJET- Analysis of Various Noise Filtering Techniques for Medical Images
Iaetsd literature review on efficient detection and filtering of high
A SURVEY : On Image Denoising and its Various Techniques
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
A Novel Approach For De-Noising CT Images
Adaptive denoising technique for colour images
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
A017230107
A STUDY OF SPECKLE NOISE REDUCTION FILTERS
Performance analysis of image filtering algorithms for mri images
Performance analysis of image filtering algorithms for mri images
Hk3513021306
IMAGE DENOISING USING HYBRID FILTER
Techniques of Brain Cancer Detection from MRI using Machine Learning
Image Filtering
final_project
Documentation
A Proposed Framework to De-noise Medical Images Based on Convolution Neural N...
[IJCT-V3I2P34] Authors: Palwinder Singh
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET- Analysis of Various Noise Filtering Techniques for Medical Images
Ad

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
additive manufacturing of ss316l using mig welding
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
DOCX
573137875-Attendance-Management-System-original
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPT
Project quality management in manufacturing
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
additive manufacturing of ss316l using mig welding
UNIT 4 Total Quality Management .pptx
Foundation to blockchain - A guide to Blockchain Tech
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Automation-in-Manufacturing-Chapter-Introduction.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
573137875-Attendance-Management-System-original
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Mechanical Engineering MATERIALS Selection
R24 SURVEYING LAB MANUAL for civil enggi
Project quality management in manufacturing
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

THE EFFECT OF IMPLEMENTING OF NONLINEAR FILTERS FOR ENHANCING MEDICAL IMAGES USING MATLAB

  • 1. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 DOI:10.5121/ijcsit.2015.7605 61 THE EFFECT OF IMPLEMENTING OF NONLINEAR FILTERS FOR ENHANCING MEDICAL IMAGES USING MATLAB Mohamed Y. Adam1 , Dr Mozamel M. Saeed2 , Prof. Dr Al Samani A. Ahmed3 1 king Saud University, TrainingandCommunity Service Center, KSA 2 prince Sattam Bin Abdul-Aziz University, collage of science, Dept. of computer science, KSA 3 Al Neelain University collage of computer science & information technology, Dept. of computer science, Sudan ABSTRACT Although this huge development in medical imaging tools, we find that there are some human mistakes in the process of filming medical images, where some errors result in distortions in the image and change some medical image properties which affect thedisease diagnosis correctly.Medical images are one of the fundamental images, because they are used in the most sensitive field which is a medical field. The objective of the study is to identify the effect of implement non-linear filters in enhancingmedical images, using the strongest and most popular program MATLAB, and because of its advantages in image processing. After implementation the researcher concluded that we will get the best result for medical image enhancement by using median filter which is one of the non-linear filters,non-linear filters implemented using Matlab functions. KEYWORDS median filter, noise reduction, maximum filter, minimum filter, enhancement, non-linear filters. 1. INTRODUCTION Digital Image Processing means using digital computers to correct the appearance of digital images, correcting the appearance include many activities for example remove noise, smoothing or sharpening the image, improve the contrast of the image, remove blurring which occurred during image acquisition.There are many filter techniques, which use to enhance images, and the enhancement is focus of improving the quality of the image or to obtain certain details. Also filtering can be used to remove unwanted noise. Certainly in medical image we find salt and pepper noise. There is a big collection of functions in MATLABtoolboxthatuse to implement different types of filters. Some of them are needed in the process of image adjustments and others are responsible for object recognition. Examples of linear and nonlinear filter including their effects are presented in Table1. (Ozimek, lectures from Digital image processing, 2010d)
  • 2. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 62 Category Filter Effect LINEAR High-pass filter Sharpening Underlining contours Low-pass filter Reduction of the noise, Smoothing out Laplace's filter Sharpening Edge detection filter Detection of all directions Edges and corners Corner detection filter NON- LINEAR Median filter Noise reduction without Blur effect Minimum filter Decrease the brightness of the edge objects Maximum filter Increase the brightness of the edge objects Table 1. Examples of image enhancing filters 1. IMAGE PROCESSING TECHNIQUE The main categories of digital image processing techniques include • Image generation • Image enhancement • Image restoration. Image generation is the most popular digital image processing techniques that use to convert an image into some sort of ordered layout. For example, the reflection created when scanner pick up an image, by digitizing this reflection the result is a series of pixels. By the result the generation techniques help project and recognize a scanned image. Image enhancement is the process that applied to an image so that the result is more suitable than the original for a specific application.The image properties and the image source will be taking into account while enhancement process, so the techniques that use to enhance x-ray may not be suitable for other kind of image. Image restoration is an area that also deals with improving the appearance of an image. So enhancement and restoration both are using to improve image appearance, but the image restoration is objective while image enhancement is a subjective process. 2. IMAGE ENHANCEMENT TECHNIQUE The main objective of image enhancement is to improve the quality of the image.Certainly in medical images we will face with more of the following problems: • The resolution is low. • Noise high level. • Contrast is low.
  • 3. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 63 • geometric deformations; •presence of imaging artifacts. The imperfections above can be causedwhile filming the imagefor example X-rays may be low contrast for soft tissues, ultrasound produces very noisy images, and metallic implants willcause imaging artifacts in MRI or the result of a deliberate trade-off during acquisition. But in this study we are focus on the image processing only and not be concerned with the challenging problem of designing optimal procedures for their acquisition a. NONLINEAR FILTERING There are a number of techniques used to remove distortions of images, where the techniques of nonlinear filters is the most important techniques for their properties, so it does not change the properties of the image but remove distortions to enhance image clarity and effectiveness. The linear filters rely on identifying noise and then removed and replaced by the neighborhood points according to the standard, while other points remain unchanged. The most important nonlinear filters aremedian filter, minimum filter, and maximum filter, and each one of these filters characteristics and advantages b. MEDIAN FILTERING Median filter is one of the most important from nonlinear filters, it is the popular technique which use to remove noise certainly the impulsive-type noise, and by the way it has the ability of preserving image details. The median filter rely on identifying noise and then removed and replaced by the median of neighborhood pixels, while other points remain unchanged. The median pixel means the middle pixel value witch considered after sorting all pixel values from surrounding neighborhood pixels numerically. In median filter, the pixel value of a point p is replaced by the median of pixel value of 8- neighbourhood of a point ‘p’. Therefore, we can generate the median filter by the following function: g p = median{f p , where p ∈ N p } (1) • The median value will replace the central pixel according to brightness of the neighbouring pixels. • When some individual pixels have outliers values, noise will raise out such as shot noise or impulse noise, So median filter can do a good job of removing such noises. As we can see in figure 1 blow, we can calculate the median value of pixel neighbourhood of 150, and then is replaced with the median of surrounding pixels value that is 124. Here we use A3x3 square neighbourhood
  • 4. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 64 Figure 1. Neighbourhood values Neighborhood values: 115, 119, 120, 123, 124, 125, 126, 127, 150 Median value: 124 The advantages of median filter: –Since output values available from the present neighborhood, the contrast will not be change. –Boundaries dose not shift in median filtering, that can happenwith other filters. –The outliers values will be removed, because the median is less sensitive to the extreme values than the mean. c. MINIMUM FILTER The most effective filter that use to remove positive outline noise is minimum filter, and it'suse also in the computational of binary morphological erosion. Minimum filter defined as: Minimum A = min A x + i, y + j , Where the coordinate x + I, y + j is defined over the image A and the coordinate I, j is defined over the mask M. The mask M determines which pixels are used in the minimum calculation. In order to find the darkest points in an image: First, find the minimum value in the area encompassed by the filter and then reduces the salt noise because of the minimumoperation;finally, the 0th percentile filter is min filter. d. MAXIMUM FILTER The most effective filter that use to remove negative outline noise is maximum filter, and it's use also in the computational of binary morphological dilation. maximum filter defined as: Maximum A = max A x + i, y + j , Where the coordinate x + I, y + j is defined over the image A and the coordinate I, j is defined over the mask M. The mask M determines which pixels are used in the minimum calculation.
  • 5. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 In order to find the brightest points in an image: First finds the maximum value in the noise because of the maximum operation, finally t 3. RESULTS The proposed methods have applied on different medical images. Some results are illustrated below. In each figure, we will see the origin minimum filter and noisy image filtered by maximum filter and filter in both tow kinds of images. Figure 2. Original bone image Figure 4.Bone image filtered by minimum filter International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 he brightest points in an image: maximum value in the area encompassed by the filter, and then reduces the pepper operation, finally the 100th percentile filter is max filter. The proposed methods have applied on different medical images. Some results are illustrated we will see the original image, noisy image, noisy image filtered by noisy image filtered by maximum filter and noisy image filtered by median filter in both tow kinds of images. Figure 2. Original bone image Figure 3. Noisy bone image Figure 4.Bone image filtered by minimum filter Figure 5.Bone image filtered by maximum filter International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 65 educes the pepper he 100th percentile filter is max filter. The proposed methods have applied on different medical images. Some results are illustrated image, noisy image, noisy image filtered by image filtered by median Figure 3. Noisy bone image Figure 5.Bone image filtered by maximum filter
  • 6. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 Figure Figure 7.Original chest image Figure 9. Noisychest image filtered by minimum filter International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 Figure 6.Bone image filtered by median filter Figure 7.Original chest image Figure 8.Noisychest image Figure 9. Noisychest image filtered by minimum Figure 10.Noisychest image filtered by maximum filter International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 66 Figure 8.Noisychest image Figure 10.Noisychest image filtered by maximum
  • 7. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 Figure 11 4. CONCLUSION In the field of medical image, generally image input devices. Noises can techniques remove noise from images so image processi Therefore image filtering is the main main aim is to remove the impulse can see in the results aboveafter implementation, removing noises of medical images. 5. APPENDEX k = imread('ches.jpg'); k = rgb2gray(k); subplot(2,2,1);imshow( g = imnoise(k,'salt& pepper' subplot(2,2,2); imshow(g);title('Noisy Image' B=zeros(size(g)); modifyA=padarray(g,[1 1]); a=[1:3]'; b=[1:3]'; forx= 1:size(modifyA,1) fory=1:size(modifyA,2) mm=reshape(modifyA(x+a B(x,y)=min(mm); end end B=uint8(B); subplot(2,2,3),imshow(B),title( k = imread('ches.jpg'); k = rgb2gray(k); subplot(2,2,1);imshow(k),title( n = imnoise(k,'salt& pepper' subplot(2,2,2); International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 11.Noisychest image filtered by median filter generally various noises is added in image while acquiring from oises can change the properties or generate false output. Image filtering techniques remove noise from images so image processing algorithm can work effectively. the main step in most image processing algorithm. In this paper the main aim is to remove the impulse noise from the medical image using non-linear filters. As we fter implementation, the median filter has the best results of removing noises of medical images. ); subplot(2,2,1);imshow(k),title('ORIGINAL IMAGE'); 'salt& pepper'); 'Noisy Image') ,[1 1]); = 1:size(modifyA,1)-2 =1:size(modifyA,2)-2 a-1,y+b-1),[],1); ); subplot(2,2,3),imshow(B),title('IMAGE AFTER MIN FILTERING' ); subplot(2,2,1);imshow(k),title('ORIGINAL IMAGE'); 'salt& pepper'); International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 67 is added in image while acquiring from or generate false output. Image filtering ng algorithm can work effectively. In this paper the linear filters. As we best results of 'IMAGE AFTER MIN FILTERING');
  • 8. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 68 imshow(n);title('Noisy Image') B=zeros(size(n)); modifyA=padarray(n,[1 1]); a=[1:3]'; b=[1:3]'; forx= 1:size(modifyA,1)-2 fory=1:size(modifyA,2)-2 mx=reshape(modifyA(x+a-1,y+b-1),[],1); B(x,y)=max(mx); end end B=uint8(B); subplot(2,2,3);imshow(B),title('IMAGE AFTER MAX FILTERING'); I = imread('ches.jpg'); subplot(2,2,1); imshow(I); title('Original Image') J = imnoise(I,'salt& pepper',0.02); subplot(2,2,2) subimage(J) title('Noisy Image') L = medfilt2(J,[3 3]); subplot(2,2,3); imshow(L) title('Noisy Image filtered by median filter') REFERENCES [1] D.A. Forsyth and J. Ponce, Computer Vision – A Modern Approach, Prentice Hall, 2003 [2] Gregory d Abram, Parallel image generation, with anti aliasing and texturing. University of North Crolina Chapel Hill NC27599-3175 [3] Harley R Myler, Arthur R. Weeks, "The Pocket Handbook of Image Processing in C", Prentice Hall 1993 [4] Image Processing using Matlab. Second Edition. United States of America. Gatesmark Publishing. [5] Mohamed Y. Adam, Mozamel M. Saeed and Al Samani A. Ahmed, "Medical Image Enhancement Application Using Histogram Equalization in Computational Libraries”, http://www.ijcst.org/Volume6/Issue1/p2_6_1.pdf [6] Mrozek, Bogumiła – Mrozek, Zbigniew 2001. Matlab 6; Poradnikużytkownika. [7] Nayan Patel, Abhishek Shah, MayurMistry, "Astudy of Digital Image Filtering Techniques in Spatial Image Processing", International Conference on Convergence of Technology - 2014 [8] Ozimek, Agnieszka 2010b. Digital image processing. Materials from Lecture no. 7. Cracow. Cracow University of Technology [9] Processing using Matlab. Second Edition. United States of America. Gatesmark Publishing [10] Rafael C. Gonzalez and Richard E. Woods, Digital image processing, Third edition, Prentice Hall, 2008 [11] Rakesh M.R, Ajeya B, Mohan A.R,"Hybrid Median Filter for Impulse NoiseRemoval of an Image in Image Restoration",International Journal of Advanced Research in Electrical,Electronics and
  • 9. International Journal of Computer Science & Information Technology (IJCSIT) Vol 7, No 6, December 2015 69 Instrumentation Engineering, Vol. 2, Issue 10, October 2013, http://ijareeie.com/upload/2013/october/8QHybrid.pdf [12] Sigurdangenent, ericpichon, and allentannenbaum, "mathematical methods in medical image processing", http://www.math.wisc.edu/~angenent/preprints/medicalBAMS.pdf [13] The MarthWorks 2009. Image Processing Toolbox 6 User’s Guide. United States of America. The MathWorks. [14] Warner and David , Digital Image processing – an analytic approach Prentice Hall ,2003