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

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,

Static characteristics of the npn silicon bjt, Consider the common-emitter ...

Consider the common-emitter BJT circuit shown in Figure (a). The static characteristics of the npn silicon BJT are given in Figure (b) along with the load line. Calculate iB for v

Clipper, application and demerits

application and demerits

Explain graphics adapters, Explain graphics adapters. Video card conve...

Explain graphics adapters. Video card converts digital output by the computer in an analog video signal and sends the signal by a cable to the monitor also termed as a graphic

D.c.machines, can voltage regulation be negative?why?

can voltage regulation be negative?why?

Determine vc in given circuit, Q. Consider the circuit of Figure in which t...

Q. Consider the circuit of Figure in which the switch S has been open for a long time and is closed at t = 0. Determine v C (t) for t ≥ 0.

Analysis in equilibrium, Analysis in equilibrium : Solution of Poisson'...

Analysis in equilibrium : Solution of Poisson's Equation with suitable boundary conditions - Non-equilibrium analysis: The electron and hole densities are no longe

Explain temperature effect on electrical conductivity metals, Explain the e...

Explain the effect of temperature on electrical conductivity of metals. As the temperature is increased, there is a greater thermal motion of atoms which decreases the regulari

Applications of semiconductors, Applications of Semiconductors Inte...

Applications of Semiconductors Integrated circuits (ICs) SSI, MSI, LSI, and VLSI. Fluorescent materials used in TV screens II-VI (ZnS). Light detectors InSb, CdSe, Pb

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