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 primary to secondary turns ratio of transformer, Consider a sourc...

Consider a source of voltage v(t) = 10 √2 sin 2t V, with an internal resistance of 1800 Ω. A transformer that can be considered ideal is used to couple a 50- resistive load to th

Sketch phasor diagrams for lagging power factor load, Q. For a transmission...

Q. For a transmission-line model that includes only the series impedance Z, sketch phasor diagrams for: (a) Lagging power factor load. (b) Leading power factor load.

Schematic diagram of a system in which the d/a converter, Q. Develop a sche...

Q. Develop a schematic diagram of a system in which the D/A converter of Figure can be employed in a digital voltmeter.

Is the mosfetoperating in the active region, Q. A depletion MOSFET is given...

Q. A depletion MOSFET is given to have large V A , V P = 2.8V, I DSS = 4.3 mA, v DS = 4.5V,and v GS = 1.2V. (a) Is theMOSFEToperating in the active region? (b) Find iD.

Assignment question , An audio amplifier with feedback needs gain of approx...

An audio amplifier with feedback needs gain of approximately 500 in a 3-dB bandwidth extending from 60 Hz to 25 kHz. Assume this is accomplished using a feedback network with ß=0.0

Give the properties and application of asbesto, Give the properties and app...

Give the properties and application of asbesto. Asbestos: It is inorganic fibrous material. Two kinds of asbestos are available. Chrysotile asbestos : This material is h

Matlab code, Linear Equalizer and Decision Feedback Equalizer ...

Linear Equalizer and Decision Feedback Equalizer Simulation and Performance Comparison In this project , performance of decision feedback equalizer is analyzed,

Determine self inductances of coils, Determine self inductances of coils: ...

Determine self inductances of coils: The number of turns in two coupled coils A and B are 600 and 1700 respectively. While a current of 6 A flows in coil B, the total flux in

Quartus, I have a project due tomorrow, i have exhuasted all my resources, ...

I have a project due tomorrow, i have exhuasted all my resources, and cannot understand how to do the project, it is VHDL coding in Quartus program, i can send the assignment if yo

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