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

Constant voltage from solar panel, circuit for the buck boost regulator con...

circuit for the buck boost regulator connected to a ic regulator , my voltae range is 5v to 24v?

Find the diameter of a circular waveguide, Q Find the diameter of a circula...

Q Find the diameter of a circular waveguide that will have a lower cutoff frequency of 10 GHz and also specify its largest usable frequency.

Atomic structure, State the postulates of Bohr''s atomic model. Write any ...

State the postulates of Bohr''s atomic model. Write any three merits and demerits.

Outdoor termination for cables, Outdoor Termination for Cables - Measures f...

Outdoor Termination for Cables - Measures for Improving Connection Outdoor terminations for paper insulated or PILCA cables were generally used without much of a problem. With

Give the properties and application of bronze, Give the properties and appl...

Give the properties and application of bronze. Bronze : It is alloy of copper and tin. This alloy is very brittle and hard. Its corrosion resistance is better than brass. Bron

Enhancement type mosfet, Enhancement type MOSFET In these types of de...

Enhancement type MOSFET In these types of devices operate by comprising a channel enhanced in the semiconductor material in which no channel was constructed, they are termed

Compare the merits and demerits of analog voltmeters, Question : (a)(1)...

Question : (a)(1) Show different types of voltmeters commonly used. (2) A basic d'Arsonval meter movement with an internal resistance Rm = 100 ?,and a full scale current of

Add the contents of register - add instruction , Add the Contents of Regist...

Add the Contents of Register   This  instruction is used to add the contents  of register R with  the contents  of accumulator  and result  of operation is stored  in the accumu

Testing of ct operated meters, Testing of CT Operated Meters The subse...

Testing of CT Operated Meters The subsequent tests should be carried out for CT operated meters: i) Ratio test through primary injection kit, ii) Polarity test, iii)

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