Noiseinimages
•Modelanoisyimageas
g(x, y) = f(x, y) + η(x, y)
g(x, y)= function of noisy image, η(x, y) = function of image noise ,
f(x, y) = function of original image.
Sources of Image noise:
•While image being sent electronically from one place to another through satellite,
wireless, etc
•Sensor heatwhile clicking an image.
•With varyingISO Factorwhich varies with the capacity of camera to absorb light.
h(x,y)=SpatialrepresentationofH.
ConvolutioninSpatialdomain=multiplication
inFrequencyDomain
TypesofImageNoise
1.Saltandpeppernoise/Impulsenoise/Shotnoise/Spikenoise
•containsrandomoccurrencesofblackorwhiteorbothpixels
•ProbabilitiesDensityFunction(PDF),p(z)isdistributionsaltandpepper
noiseinimage
•Reasonsforimpulsenoise:
–memorycellfailure.
–malfunctioningofcamera’ssensorcells.
–synchronizationerrorsinimagedigitizingortransmission
•Filteringtechniquesforimpulsenoise
•Meanfiltering
•Medianfiltering
•Gaussianfiltering
=
=
=
otherwise0
for
for
)( bzP
azP
zp
b
a
TypesofImageNoise
2.Gaussiannoise:
•variations(fluctuation)inintensitydrawnfromaGaussiannormal
distribution
•Thisnoisecontainspdfofthenormaldistribution
Z–randomvariable
SourcesofGaussianNoise
•Itoccursduringacquisition
oE.g.Sensornoisecausedbypoorilluminationand/orhigh
temperature
•Transmission
oe.g.Electroniccircuitnoise.
GaussianNoisefilteringtechniques
•Mean(convolution)filtering
•Medianfiltering
•Gaussianfiltering
Original
Image
Noisy Image22
2/)(
2
1
)(
−−
=
z
ezp
NoiseRemoval
•Use spatial filters to remove different kinds of noise.
•Noisereductioncanbeimplementedinspatialandfrequencydomain.
•Techniquestoreducenoiseare:
•UniformFilter/AveragingFilter
•MedianFilter/OrderstatisticFilter
•GaussianFilter/BandRejectFilter
•InverseFiltering
•WeinerFiltering
•A general technique to noise reduction is smoothing and median filter.
Average/Meanfiltertypes
Mean Filter
Harmonic
(Arithmetic) Mean
Geometric Mean
Contraharmonic
Mean
•Arithmetic and geometric mean filters are suitable for Gaussian or uniform noise
•Contraharmonicfilters are suitable for impulse noise
Harmonic Mean Filter
•Harmonicmeantechniquereducesthesaltnoise.
•But,itcan’treducepeppernoisewell.
•ThistechniquealsocanreducedamagedimageduetoGaussiannoise.
Geometric Mean Filter
•Theresultobtainedfromgeometricmeanproducesblurimage.
•Theinformationofimagewilllost.
Contraharmonic Mean Filter
•Qistheorderofthefilterandadjustingitsvaluechangesthe
filter’sbehaviour.
•iftheQvalueisnegativevalue,itcanreducesaltnoise.
•iftheQvalueispositivevalue,itcanreducepeppernoise.
•Thistechniquecan’teliminatebothsaltandpeppernoise
concurrently.
Median Filter
•Median filter technique reduces impulse noise such as Salt and Pepper
well.
•Median filter is defined as:
•Center(median)valueintheoriginalimage3x3pixelsisreplacedby
themedianvalue.
•Medianfiltertechniqueisappliedforeachnon-overlappingblockof3x3
pixels,fromtop-leftcornertotop-rightcornerandfromtoptobottom.
Adaptive median Filters
•Adaptive median filterscan perform better than media filter on impulse noise
such as pepper and salt noise.
•The results obtained from adaptive median filter produce slightly smooth image.
•Thebehaviourofadaptivefilterschangesdependingonthecharacteristicsofthe
imageinsidethefilterregion.
•Themedianfilterperformsrelativelywellonimpulsenoiseaslongasthespatial
densityoftheimpulsenoiseisnotlarge.
•Theadaptivemedianfiltercanhandlemuchmorespatiallydenseimpulsenoise,
andalsoperformssomesmoothingfornon-impulsenoise.
•Thekeyinsightintheadaptivemedianfilteristhatthefiltersizechanges
dependingonthecharacteristicsoftheimage.
•Filtering looks at each original pixel image and generates a new filtered pixel.
Adaptive median Filters
–z
min = minimum grey level in S
xy
–z
max = maximum grey level in S
xy
–z
med = median of grey levels in S
xy
–z
xy = grey level at coordinates (x, y)
–S
max = maximum allowed size of S
xy
Level A: A1 = z
med–z
min
A2 = z
med–z
max
ifA1 > 0andA2 <0, Go tolevel B
else increase the window size
if window size ≤ repeat S
maxlevel A
else output z
med
Level B: B1 = z
xy–z
min
B2 = z
xy–z
max
ifB1 > 0andB2 <0,output z
xy
else output z
med
Adaptive median Filters
•Adaptive median filter has three purposes:
–Remove impulse noise
–Provide smoothing of other noise
–Reduce distortion such as excessive thinning or thickening of
object boundaries
MaxandMinFilter
Max Filter:
Min Filter:
•Max filter is good for pepper noise and minis good for salt
noise)},({max),(
ˆ
),(
tsgyxf
xySts
= )},({min),(
ˆ
),(
tsgyxf
xy
Sts
=
MidpointFilter
•Good for random Gaussian and uniform noise
+=
)},({min)},({max
2
1
),(
ˆ
),(),(
tsgtsgyxf
xyxy
StsSts
Alpha-Trimmed Mean Filter:
•Hybrid of median and mean filters
•Work on the monochrome images only 8 bit and 24 bits.
•Alpha parameter is d responsible for number of trimmed (discard) element
•Average the pixel values by Delete the d/2 lowest and d/2highest grey level
values. So use the remaining mn–dpixels.
•Useful in situations involving multiple types of noise, such as a combination of
salt-and-pepper and Gaussian noise
−
=
xy
Sts
r
tsg
dmn
yxf
),(
),(
1
),(
ˆ
BandRejectFilters
•The ideal band reject filter is shown along with Butterworth and
Gaussian versions of the filter.
Ideal
Band Reject Filter
Butterworth
Band Reject Filter (of order 1)
Gaussian
Band Reject Filter