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

Flashlight, Why are some flashlights brighter than others? Why is it import...

Why are some flashlights brighter than others? Why is it important that all of the batteries point in the same direction? What is the difference between old batteries and new? What

Instrument, Differentiate between dual beam and dual trace oscilloscope

Differentiate between dual beam and dual trace oscilloscope

Primacy of mosfet, Primacy of MOSFET In the year 1959, Dawon Kahng an...

Primacy of MOSFET In the year 1959, Dawon Kahng and Martin M. (John) Atalla at Bell laboratory invented the MOSFET. Operationally and structurally diverse from the bipolar ju

Transistor voltmeter, \ Transistor voltmeter (TVM) : a simple diagram of ...

\ Transistor voltmeter (TVM) : a simple diagram of TVM using two transistors in the bridge configuration is as shown. TVM is provided by using transistor bridge circuits. In b

Calculate the voltage gain, Using the BC548B BJT transistor amplifier biasi...

Using the BC548B BJT transistor amplifier biasing circuit of Lab 2 build an amplifier with the voltage gain of  |A V | = 30 v/v ± = 10%. Measure all necessary parameters of the amp

Help needed in degree project, i have to design a project title "Edge deter...

i have to design a project title "Edge determining techniques for Low quality images in different lighting conditions and we use matlab for images simulation by changing different

Magnetic circuits, Suppose we have a coil wound onto a ring of material wit...

Suppose we have a coil wound onto a ring of material with relative permeability µ r . Provided that the relative permeability µ r  >> 1, then the magnetic flux lines will s

Switched mode power supply , Switched Mode Power Supply  (SMPS) Switch...

Switched Mode Power Supply  (SMPS) Switching mode power  supply converts an unregulated DC voltage  to a regulated DC  output  voltage . SMPS  stands  for switched mode  power

Evaluate currents in the circuits, Evaluate currents in the circuits: ...

Evaluate currents in the circuits: Determine currents I 1 and I 2 in the given circuits by applying KVL. Solution We apply KVL for first loop : 10 = 1 I 1   + 1 (

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