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

Physics, While sitting in physics class one day, you begin to ponder the wo...

While sitting in physics class one day, you begin to ponder the workings of the analog clock on the classroom wall. You notice as the hands sweep in a continuous motion that there

Design a circuit using real components, The circuit shown below is a protot...

The circuit shown below is a prototype 4 th - order low-pass filter which is required to meet the specification given. However the specification is not met due to inadequate atten

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

Name the materials used in case of bimetals, Name the materials used in cas...

Name the materials used in case of Bimetals and give reasons. Bimetals : Alloy of nickel and iron along with low value of coefficient of thermal expansion are utilized as

Explain multimedia extensions technology, Explain MMX Technology. Mult...

Explain MMX Technology. Multimedia extensions technology adds 57 newly instructions to the instruction set of the Pentium - 4 microprocessors. The Multimedia extensions techno

What are the different parameters of jfet, Q. What are the different parame...

Q. What are the different parameters of jfet ? A bipolar junction transistor (BJT) is a current controlled device that is output characteristics of the device are controlled by

Find the diameter of the antennas, Two stations, located on mountain tops 4...

Two stations, located on mountain tops 40 km apart, communicate with each other using two identical paraboloidal antennas with pencil beam- width of 1°, aperture ef?ciency of 0.8,

Explain about synchronous machines, Q. Explain about Synchronous machines? ...

Q. Explain about Synchronous machines? Large ac power networks operating at a constant frequency of 60 Hz in the United States (50 Hz in Europe) rely almost exclusively on sync

Power Engineering, A three-phase transposed line is composed of one ACSR co...

A three-phase transposed line is composed of one ACSR conductor per phase with flat horizontal spacing of 11 meters as shown in Figure (a). The conductors have a diameter of 3.625

Define asynchronous communication with serial communication, With respect t...

With respect to serial communication define the asynchronous communication. Asynchronous implies "no synchronization", and therefore does not require sending and receiving idl

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