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

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

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

Compute the mean torque, Q. A rotating electric machine with uniform air ga...

Q. A rotating electric machine with uniform air gap has a cylindrical rotor winding with inductance L 2 =1 H and a stator winding with inductance L 1 =3H. Themutual inductance va

What are the cautions to be taken, What are the cautions to be taken before...

What are the cautions to be taken before starting work on electrical installations? Ans: Before starting any electrical works on installations disconnect the power supply to

Research publication, i need research publication help. The topic is PHASED...

i need research publication help. The topic is PHASED ARRAY ANTENNA DESIGN for KU-band. I want a research paper that can be published in some conference.

Draw a 100 line exchange, Q. Draw a 100 line exchange using two motion sele...

Q. Draw a 100 line exchange using two motion selectors and elucidate, how switching takes place in it. Ans: In a 100 line exchange, every subscriber is assigned a 2 digit

Communication systems/theory, have 18 multiple choice questions i need answ...

have 18 multiple choice questions i need answered by 9am cst and will pay Need ASAP

Active-mode npn transistors in circuits, Active-mode NPN transistors in cir...

Active-mode NPN transistors in circuits Figure:  Structure and use of NPN transistor. Arrow according to schematic. The figure opposite is a schematic presentation

Digital communication systems, Q. Digital communication systems? Today ...

Q. Digital communication systems? Today digital communication systems are in common use, carrying the bulk of our daily information transmission through a variety of communicat

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