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

In the circuit, see figure on this link: http://tinypic.com/r/1zodevk/8. ...

see figure on this link: http://tinypic.com/r/1zodevk/8. A. j400 I1-j1200 I2 (A) B. -j400 I1+j1600 I2 (A) C. j400 I1+j400 I2 (A) D. -j400 I1-j400 I2 (A)

Determine the capacitance length of a pcb embedded stripline, 1. Determine ...

1. Determine the capacitance length of a PCB embedded stripline, assuming no fringing of the electrostatic field. 2. Determine the capacitance/unit length of the same embedded stri

Determine the current and the voltage in the load resistance, Q. Adiodewith...

Q. Adiodewith the i-v characteristic shown in Figure is used in series with a voltage source of 5 V (forward bias) and a load resistance of 1 k. (a) Determine the current and t

Draw the circuit of battery having of three cells in series, One battery ha...

One battery having of three cells in series. External resistance is 5 Ω E.m.f each cell is 1.5V and internal resistance is 0.2?. Measure the current flow and draw the circuit.

Determine self inductance of coil, Determine self inductance of coil: ...

Determine self inductance of coil: A flux of 0.5 m Wb is generated by coil A of 600 turns wound on a ring with a current of 2 A in it. Determine (a) self inductance of coil A,

State the advantages of expert systems, State the Advantages of expert syst...

State the Advantages of expert systems -  Never "forgets" to ask a question in determining the logic -  provides consistent answers - Less skilled work force needed, ther

Program implementing the conjugate gradient method, Write a program impleme...

Write a program implementing the conjugate gradient method (un-preconditioned). Solve the  matrix equation corresponding to a finite difference node-spacing, h = 0.02m in x and y d

Calculate the total head loss between points, Look at figure below and use....

Look at figure below and use.  Water (50°F) flows at 250 gpm through the pipe system at the bottom of this page. All piping is four inch (4") diameter cast iron. The distance betwe

Determine the energy, Q. Consider a pair of coupled coils as shown in Figur...

Q. Consider a pair of coupled coils as shown in Figure of the text, with currents, voltages, and polarity dots as indicated. Show that the mutual inductance is L 12 = L 21 = M by

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