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

Structure of bipolar junction transistor, Structure of Bipolar junction tra...

Structure of Bipolar junction transistor:  A BJT contains three differently doped semiconductor regions that are: emitter region, base region and collector region. These regio

Explain steady-state stability, Q. Explain Steady-State Stability? The ...

Q. Explain Steady-State Stability? The property of a power system that ensures that it will remain in equilibrium under both normal and abnormal conditions is known as power-sy

Express the storedmagnetic energy, A relay is essentially an electromechani...

A relay is essentially an electromechanical switch that opens and closes electrical contacts. A simplified relay is represented in Figure. It is required to keep the fenomagnetic p

Show how conservation of power is satisfied by the circuit, Q. Show how the...

Q. Show how the conservation of power is satisfied by the circuit of Figure.

What is trans conductance, Q. What is Trans conductance? It is ratio of...

Q. What is Trans conductance? It is ratio of small change in drain current to the corresponding change in the gate-to-source voltage for a constant gate-to-source voltage .it i

Interpreter- high level language, Interpreter- High level language T...

Interpreter- High level language The interpreter is a program  which  translates the high  level  program  into  objects  program  statement wise . it reads one statement of

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