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 transformer turns ratio, A flyback converter is to be designed so...

A flyback converter is to be designed so that it operates in continuous "current" (flux) mode with a duty cycle of D = 0.45 when input voltage V s = 48 V, output voltage V o = 30

Boolean functions by employing 8-to-1multiplexers, Q. Implement the followi...

Q. Implement the following Boolean functions by employing 8-to-1multiplexers. (a) F 1 (A,B,C) = Σ m i (0, 2, 4, 6) (b) F 2 (A,B,C) = Σ m i (1, 3, 7)

Solutions of question bank needed urgent, Need answers of a question bank o...

Need answers of a question bank of power electronics . It is an assignment. Urgent

Evaluate the diode current id, Question: (a) The piecewise linear appro...

Question: (a) The piecewise linear approximation given in Figure is assumed for the diode in the circuit shown in Figure. Evaluate the diode current ID. (b) The piecew

Schmitt triggering, schmitt triggering with emitter coupled transister

schmitt triggering with emitter coupled transister

Electromagnetic torque , Electromagnetic torque  The torque is given...

Electromagnetic torque  The torque is given by the force on the armature winding multiplied by its radius. Force on a conductor in magnetic field B is:  F=B.I.L so, T=B

Positive and negative clippers, Positive Clippers The shunt connected p...

Positive Clippers The shunt connected positive clipper, in which the diode conducts for positive half cycle and hence, the output is a straight line. During the negative half c

Factors affecting high commercial losses, Factors Affecting High Commercial...

Factors Affecting High Commercial Losses Commercial losses in our country occur mainly because of the following reasons: Incorrect assessment of the energy consum

Explain the term simplex transmission, Explain the term simplex transmissio...

Explain the term simplex transmission. Data in a simplex channel is always one method. Simplex channels are not frequently used because this is not possible to send back error

What do you mean by sign bit, Q. What do you mean by Sign Bit? The sign...

Q. What do you mean by Sign Bit? The sign bit is like simple as it gets 0 denotes a positive number and 1 denote a negative number and flipping the value of this bit flips the

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