Filtering, Electrical Engineering

Assignment Help:

Filtering

 (i) Write an m-file "mymedian.m" which will take an image and filter size and perform median filtering. Display input and output image. Use 

help median

function imm=mymedian(imn,msize)
[h w]=size(imn);
kernel_size=?
imm=imn;
for i=msize+1:(h-msize)
  for j=msize+1:(w-msize)
    imm(i,j)=median(reshape(imn(i-msize:i+msize,j-msize:j+msize),1,kernel_size));
  end
end

What is the median value of an image?

Comment on the complexity (number of operations per pixel) of the algorithm. 

(ii) Write an m-file "mygaussian.m" which will take an image and filter size and perform Gaussian filtering. Display input and output image.


function img=mygaussian(imn,sigma)
g=gauss(sigma);

img=?(iii) Perform median and Gaussian filtering on  face_g.png, face_m.png,statue_m.png.
What kind of noise the median filer is useful for?
What kind of noise the Gaussian filer is useful for?


Related Discussions:- Filtering

Electronic monitor and alarm system for an oil separator, This assignment i...

This assignment is to develop a User Requirements Specification for an electronic monitor and alarm system for an Oil Separator in Surface Water Drainage Systems. These separato

Explain about darlington amplifier, Q Explain about 'Darlington Amplifier'?...

Q Explain about 'Darlington Amplifier'? DARLINGTON AMPLIFIER : A CC stage followed by another CC stage has an input resistance of about (b + 1) 2 times the emitter resistance

Personal and corporate income tax rate, Ginny Jones currently works as the ...

Ginny Jones currently works as the VP-Product Strategy for a well-established enterprise software company. She and her friend, Tom Robinson, currently CFO at a competing firm (and

How a transistor in common-base configuration amplify signal, Q. With a cir...

Q. With a circuit diagram explain how a transistor in common-base configuration amplify signals.  The common-base terminology is derived from the fact that the base is common t

Plot the waveforms of the inductor current, Q. The current through a 2.5-mH...

Q. The current through a 2.5-mH indicator is a damped sine given by i(t) = 10 e -500t sin 2000t. With the aid of MATLAB, plot the waveforms of the inductor current i(t), with v

3-phase bridge inverter, 3-phase  Bridge Inverter In 3-phase bridge in...

3-phase  Bridge Inverter In 3-phase bridge inverter six thyristors an six diodes are used as shown in figure  a capacitor at input terminal is connected so that the input volta

Calculate the energy consumed, A typical 12-V automobile battery, storing a...

A typical 12-V automobile battery, storing about 5 megajoules (MJ) of energy, is connected to a 4-A headlight system. (a) Find the power delivered to the headlight system. (b

Dc machines, compound generator drawback

compound generator drawback

Explain procedure to test the power line, Explain procedure to take shut do...

Explain procedure to take shut down and to test the power line before starting work? Ans: Study the circuit and find out the circuit breaker to be opened. Open and lock the c

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd