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

Specific orientation programme, Specific orientation programme: at this st...

Specific orientation programme: at this stage, induction is conducted by the foreman. Induction is specific and requires skill on the part of the foreman. A new employee must be p

Designing 100 line exchange using uni-selector, Q. Designing 100 line excha...

Q. Designing 100 line exchange using Uni-selector? Here three different designing methods for 100 line exchange are discussed: Design: Strowger switching system is designe

Design a mealy system, Design a Mealy system whose output is 1 iff there ha...

Design a Mealy system whose output is 1 iff there have been exactly two 1's followed by a 0 and then a 1. (a) Assume overlapping is allowed (b) Assume overlapping is not

Ac, power factor improvement

power factor improvement

Scatter Diagrams - Quality Tools for Improvement, Scatter Diagrams - Qualit...

Scatter Diagrams - Quality Tools for Improvement Scatter diagrams are graphical tools which attempt to depict the influence in which one variable has on another. A general dia

Dynamic response of control systems, Q. Dynamic Response of Control Systems...

Q. Dynamic Response of Control Systems? The existence of transients (and associated oscillations) is a characteristic of systems that possess energy-storage elements and that a

Continuity equation - zero electric field, Continuity Equation: Expla...

Continuity Equation: Explain continuity equation and discus the special case of continuity equation when concentration is independent of time and with zero electric field.

Explain p - type semiconductor, Explain p - Type semiconductor. p - ...

Explain p - Type semiconductor. p - Type semiconductor:- (i) If small amount of trivalent impurity is added with to a pure semiconductor giving a large no. of holes in t

Discuss the term d/a conversion, Discuss the term D/A conversion. D/A...

Discuss the term D/A conversion. D/A conversion: Digital-to-analog or analog-to-digital conversions are two very significant aspects of digital data processing.  Digital-to-

Show steady-state sinusoidal analysis with pspice, Q. Show Steady-State Sin...

Q. Show Steady-State Sinusoidal Analysis with PSpice PSpice can easily solve steady-state ac circuits for currents and voltages. Ac voltage sources, which must begin with the l

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