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

Resume, who to write resume for job

who to write resume for job

Feedback amplifier, explain working pricipal of nagative resistance oscilla...

explain working pricipal of nagative resistance oscillator

Compute number of electrons and find their average velocity, Q. A wire with...

Q. A wire with n = 10 30 electrons/m 3 has an area of cross section A = 1mm 2 and carries a current i = 50 mA. Compute the number of electrons that pass a given point in 1 s, an

Ac generators - the alternator, In practice, it is usually better to wind t...

In practice, it is usually better to wind the field coils on the rotor and supply the field current to them via slip rings.  As the rotor turns, the changing magnetic field expe

Determine the resistance and temperature-coefficient, Determine the resista...

Determine the resistance and temperature-coefficient: A platinum coil has a resistance of 3.146 Ω at 40 o C and 3.767 Ω at 100 o C. Determine the resistance at 0 o C and the t

Resistance, if the sheet resistance of a tin oxide is 100 ohms, what is the...

if the sheet resistance of a tin oxide is 100 ohms, what is the thickness of the oxide layer?

What is permeability of magnetic materials, Q. What is permeability of magn...

Q. What is permeability of magnetic material? For magnetic material media, the magnetic flux density B, expressed in tesla (T) or Wb/m 2 , and the field intensity H, expressed

Determine the cost of energy used in a system, The energy consumption for a...

The energy consumption for a small factory is given at the end of the brief. a) Three commercial tariffs from an energy supplier are shown below. Using these (or other commercia

What is asynchronous data transfer, What is asynchronous data transfer? ...

What is asynchronous data transfer? It is a data transfer method which is used when the speed of an I/O device does not match with the speed of the microprocessor. Asynchronous

Determine the dimensions of the new model, The manufacturers of the tank de...

The manufacturers of the tank described in Problem would like to  design another model, with twice the capacity of the one described in figure. The ratio of height to diameter must

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