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

Write some disadvantages of loosely coupled systems, Write some disadvantag...

Write some disadvantages of loosely coupled systems More complicated due to the needed additional communication hardware. They are less portable and more expensive because o

What is the signal classification of 8085, What is the signal classificatio...

What is the signal classification of 8085 All the signals of 8085 can be classified into 6 groups Address bus Data bus Control and status signals Power supply and f

Define magnetic field, Define Magnetic field The area around a magnet i...

Define Magnetic field The area around a magnet is known as the magnetic field and it is in this area that the effects of the magnetic force formed by the magnet can be detected

Branch current method, if a resistor present in the middle of two branches ...

if a resistor present in the middle of two branches in such a way that their polarities coincide then how do we choose the polarity of that resistor

Designing of a 2 way cross-over circuit for loudspeaker, Loudspeakers using...

Loudspeakers using single driver are unable to cover the entire frequency band from low frequency to high frequency. Sometimes multiband frequency is required for the bass enhancem

On state voltage drop - thyristor , On state  voltage  drop  It is...

On state  voltage  drop  It is  the maximum   instantaneous on state voltage  measured  under  pulse conditions to avoid  excessive dissipation at a particular junction  tem

Define smoothing the output, Define Smoothing the Output? The output of...

Define Smoothing the Output? The output of a DAC is stepped, such as the analog waveforms which were sampled and held. This stepped, or staircase effect is a distortion, and it

Working of closed cycle and open cycle brayton cycle, Give the layout of a ...

Give the layout of a modern steam power plant and illustrate it briefly. With the help of schematic diagrams illustrate the construction and basic working of closed cycle and op

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