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

Use thevenin''s theorem find the current flow by resistor, Use Thevenin's T...

Use Thevenin's Theorem, find the current flow by resistor R=10Ω.

Network analysis software, Network analysis software: GIS with a socke...

Network analysis software: GIS with a socket for network analysis software (Sec. 11.4) and availability of load related data from AMR based meter data acquisition system will

Three phase power measurement, what is the relationship between the inducta...

what is the relationship between the inductance, capacitance and resistance in the 2-wattmeter experiment?

Opmi]]r., Ask question #Minimukkgkmm 100 words accepted#

Ask question #Minimukkgkmm 100 words accepted#

Use mesh analysis and nodal analysis to determine voltage, Q. Use (a) mesh ...

Q. Use (a) mesh analysis and (b) nodal analysis to determine the voltage ¯V at the terminals A-B of Figure.

Find the voltage regulation and efficiency of the line, Q. A60-Hz, three-ph...

Q. A60-Hz, three-phase transmission line has a total per-phase series impedance of 35+j140 .Ifit delivers 40 MW at 220 kV and 0.9 power factor lagging, find: (a) The voltage, c

MR, how to design a single phase distribution circuit from a supply point t...

how to design a single phase distribution circuit from a supply point to a load(lights)

Pareto Analysis, Pareto Analysis Pareto charts are based on the princi...

Pareto Analysis Pareto charts are based on the principle - "Vital Few Trivial Many". It allows user to focus attention on a few significant factors in a process. It is very us

D flip-flop - latch or delay element, Q. D flip-flop - latch or delay eleme...

Q. D flip-flop - latch or delay element? The symbol for the clocked D flip-flop is shown in Figure (a), in which the two output terminals Q and ¯ Q behave just as in the SRFF,

Quick ratio, Quick ratio A stringent indicator that determines whether...

Quick ratio A stringent indicator that determines whether a firm has enough short-term assets to cover its immediate liabilities without selling inventory. It is calculated as

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