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

Calculate the value of load resistance, A battery having of 5 cells with em...

A battery having of 5 cells with emf and internal resistance of every cell is 1.5V and 0.25Ω connected in series. If the current flow by load resistance is 1.5A, calculate the valu

Evaluate discrete-time signal, Consider the following signals, sketch each ...

Consider the following signals, sketch each one of them and comment on the periodic nature: (a) x(t) = A cos(2πf 0 t + θ), where A, f 0 , and θ are the amplitude, frequency, and

Field-effect transistor, Field-Effect Transistor: The field-effect tra...

Field-Effect Transistor: The field-effect transistor that is abbreviated as FET relies on an electric field to control the shape and therefore the conductivity of a channel of

Thevenin theorem, advantages and disadvantages of thevenin theorem

advantages and disadvantages of thevenin theorem

Impact of diversity, Both GSM and DECT use GMSK, but with different Gaussia...

Both GSM and DECT use GMSK, but with different Gaussian filters (BGT = 0.3 in GSM, BGT = 0.5 in DECT). What are the advantages of having a larger bandwidth time product? Why is the

Determine the maximum length, Q. If the line of Problem 15.1.3 is made of c...

Q. If the line of Problem 15.1.3 is made of copper whose resistivity ρ = 1.72×10 -8 ·m, determine the maximum length that can be used if losses are not to exceed 3 dB when f = 3

Show a block diagram of a 4-bit, Q. Show a block diagram of a 4-bit, parall...

Q. Show a block diagram of a 4-bit, parallel-input shift-right register and briefly explain its operation.

Explain p - n junction, Explain P - N junction. P - N junction: If a ...

Explain P - N junction. P - N junction: If a p- type semiconductor is properly joined to an n-type semiconductor the contact surface that formed is termed as p-n junction. Th

Induced voltage and inductance, Experiments conducted by Faraday and others...

Experiments conducted by Faraday and others using current carrying coils resulted in 'The Laws of Electromagnetic Induction' which state: 1)  'If the magnetic flux threading throu

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