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

Find the equivalent series impedance, Q. 10-kVA, 4800:240-V, 60-Hz, single-...

Q. 10-kVA, 4800:240-V, 60-Hz, single-phase transformer has an equivalent series impedance of 120 + j300  referred to the primary high- voltage side. The exciting current of the tr

Explain working of encoders, Explain working of Encoders? Encoding is t...

Explain working of Encoders? Encoding is the process of forming an encoded representation of a set of inputs, and it is the converse of the decoding operation. An encoder is a

Magnetic contactor, how to wire a three phase contactor to become a single ...

how to wire a three phase contactor to become a single phase contactor?

What is tunnel effect and applications of tunnel effect, What is tunnel eff...

What is tunnel effect? Discuss the Alpha decay as an example of tunnel effect. Prove that tunneling increases on decreasing the height and width of the barrier. Explain what do you

Define electrical power, Electrical power Power P in an electrical circ...

Electrical power Power P in an electrical circuit is given by the product of potential difference V and current I. The unit of power is the watt, W.

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

Explain the procedure of binary to hex conversion, Q. Explain the procedure...

Q. Explain the procedure of Binary to Hex Conversion? It is simple to convert from an integer binary number to hex. This is completed by: Break the binary number int

What is meant by biasing transistor, Q. What is meant by biasing transistor...

Q. What is meant by biasing transistor? The purpose of dc biasing of transistor is to obtain a certain dc collector current at a certain dc collector voltage. These values of c

Find the value of frequency, Although the low side is not as good a choice ...

Although the low side is not as good a choice as the high-side local oscillator frequency, let an AM broadcast receiver be designed with a low-side local oscillator. As fc is varie

Motor, What is the main function of the slip ring

What is the main function of the slip ring

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