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

Circuit, y more number of resistance and capacitor are used in a circuit w...

y more number of resistance and capacitor are used in a circuit what is the purpose to add ore than one..?

Determine frequency of rotor current, A 3 phase, 6 pole induction motor is ...

A 3 phase, 6 pole induction motor is rated at 400hz, 150v, 10h.p., 3% slip at rated power output. The windage and friction loss is 200w at rated speed. With the motor operating at

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

Analysis on solar charging system buck converter with VMC, PLS WRITE THE IN...

PLS WRITE THE INTRODUCTION, METHODOLOGY AND LITERATURE REVIEW

A circuit having of a resistor connected in series, A circuit having of a r...

A circuit having of a resistor connected in series with a 0.5µF capacitor and has a time constant of 12 ms. Verify: (a)  The value of the resistor (b)  The capacitor voltage

Variations of drain current - drain voltage, Q. Consider the common-source ...

Q. Consider the common-source JFET circuit shown in Figure with ?xed bias. Sketch the sinusoidal variations of drain current, drain voltage, and gate voltage superimposed on the di

State fleming''s right-hand rule, Fleming's Right-hand rule states: Let ...

Fleming's Right-hand rule states: Let the thumb, first finger and second finger of the right hand be extended such that they are all at right angles to every other. If the first

Define integrated circuits, Q. Define Integrated circuits? For the fabr...

Q. Define Integrated circuits? For the fabrication of semiconductor circuits, there are three distinct technologies employed: 1. Discrete-component technology, in which each

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