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

Four quadrant chopper or class e chopper , Four  Quadrant Chopper or Class...

Four  Quadrant Chopper or Class E chopper                                                                    Figure class E chopper circuit  Mode I When

Pinch off voltage, Pinch off Voltage: The current in N-JFET because of...

Pinch off Voltage: The current in N-JFET because of a small voltage V DS  is described by: I DSS = (2a) W/L (qN d μ n V DS ) In which 2a  = channel thickness

Determine the disadvantages of expert systems, Determine the Disadvantages ...

Determine the Disadvantages of expert systems -  Lacks common sense in some decision making processes -  Errors in the knowledge base can result in incorrect decisions being

Define salient-pole rotor construction - synchronous machine, Define Salien...

Define Salient-pole Rotor Construction - Synchronous Machines? Salient-pole rotor construction on the other hand, may be used for low to medium speed applications. The machines

Electrons and holes, E l e c t r ons and Holes For T> 0 K, t...

E l e c t r ons and Holes For T> 0 K, there would be some electrons in the otherwise empty conduction band, and some empty states in the otherwise filled valence ban

Electric helicopter, examples in building electric helicopter using cardboa...

examples in building electric helicopter using cardboard, balsa wood, scotch tape, glue, binder clips, rubber bands, rubber stoppers, etc. attached to a 12v power supply

Logically and the contents of register, Logically AND  the contents of Reg...

Logically AND  the contents of Register Contents of  register are logically AND with the accumulator bit wise. The result  of the AND  operation is  stored  in the accumulat

Illustrate bandstop filter, Q. The dual situations is shown in Figure , in ...

Q. The dual situations is shown in Figure , in which a high-pass and a low-pass filter are connected in parallel to produce a bandstop filter. With ω CLP = 10 CHP = 50, ω 0

What is inductor, What is Inductor Inductor, also known as a choke, is ...

What is Inductor Inductor, also known as a choke, is another passive type electrical component designed to take benefit of this relationship by forming a much stronger magnetic

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