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

Digital frequency metre, what is digital frequency metre?working principle ...

what is digital frequency metre?working principle its operation and types application,advantages ,disadvantages

What do you mean by star topology, Q. What do you mean by Star Topology? ...

Q. What do you mean by Star Topology? Star Topology: In Star topology, all user nodes are connected to central node point that interconnects all individual users' links and nod

Determine the two possible ssb am signals, Let the modulating signal m(t) b...

Let the modulating signal m(t) be a sinusoid of the form m(t) = cos 2πf m t, f m c , and let the carrier signal be cos(2πf c t + φc). (a) Determine the conventional AM signal,

Working of an astable multivibrator, Q. With the help of a npn transistor c...

Q. With the help of a npn transistor circuit and wave forms explain the working of an astable multivibrator In astable multivibrator both transistors are coupled to each other

Preventive and regular maintenance, Preventive and Regular Maintenance ...

Preventive and Regular Maintenance Preventive and regular manages of components of the distributions system is necessary to reduce/eliminate breakdowns. Care should be taken t

Explain and draw hysteresis loop for soft magnetic material, Draw the hyste...

Draw the hysteresis loop for a soft magnetic material and compare it with the hysteresis loop of hard magnetic material. Give two examples of each. Soft and hard magnetic mate

#title.oscillators., how does an RC 3 phase shift oscillator operates?

how does an RC 3 phase shift oscillator operates?

Transformers, Are you able to give a list of factors that could be consider...

Are you able to give a list of factors that could be considered as the transformer''s characteristics?

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