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

Binary number system - number systems , Binary  Number Systems As men...

Binary  Number Systems As mentioned  earlier this  number is used by  digital  systems like  microprocessor  and other  digital  circuits. This  number  systems  use only two

Generation and control of electron beam, Illustration the basic working pri...

Illustration the basic working principle, process parameters, economics, safety precautions and applications of plasma Arc Machining process(PAM) Discuss Electron Beam Machining

What is a bode plot and what are i''s uses, Q. (i) What are the different t...

Q. (i) What are the different types of plots for frequency response in an RC coupled amplifier?     (ii) What is a Bode Plot? What are it's uses? The different types of

Determine the antennas radiated power, Q. A transmitter is connected to an ...

Q. A transmitter is connected to an antenna by a transmission line for which ¯ Z 0 = R 0 = 5 0 . The transmitter source impedance is matched to the line, but the antenna is kno

#emf., what is the effect of back emf ?

what is the effect of back emf ?

Explain the asynchronous decade counter, Explain the Asynchronous Decade Co...

Explain the Asynchronous Decade Counter? The binary counters earlier introduced have two to the power n states. But the counters with states less than this number are as well

Working of bootstrap sweep circuit, analysis and detail working of bootstra...

analysis and detail working of bootstrap sweep circuit

Find the approximate bandwidth of the circuit, Q. An op amp has an open-loo...

Q. An op amp has an open-loop frequency response as shown in Figure. (a) Find the approximate bandwidth of the circuit using this op amp: (i) With a closed-loop voltage gain

Explain the bidirectional shift registers, Explain the Bidirectional Shift ...

Explain the Bidirectional Shift Registers? A Reversible or A Bidirectional shift register is one in which the data can be shift either left or right. D flip-flops are used by

Tvm, Why is the signal first attenuated and then amplified?

Why is the signal first attenuated and then amplified?

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