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 current for a bjt, Q. For a BJT with vBE = 0.7V, I CBO = 4 nA, ...

Q. For a BJT with vBE = 0.7V, I CBO = 4 nA, i E = 1 mA, and i C = 0.9 mA, evaluate α, iB,iSE, and β.

What layers are covered under end to end layer connectivity, Q. What layers...

Q. What layers are covered under end to end layer connectivity? Layers 4-7 of ISO-OSI reference model communicate with peer entities in end systems. In intermediate systems,th

Explain electric polarization, Explain electric polarization. Electr...

Explain electric polarization. Electric polarization : This polarization density is the vector field such expresses the density of permanent or induced electric dipole momen

Explain multimeter, Explain multimeter A multimeter, or universal instr...

Explain multimeter A multimeter, or universal instrument, may be used to measure voltage, current and resistance.

Compute the primary current and the braking torque, A three-phase, wye-conn...

A three-phase, wye-connected, 400-V, four-pole, 60-Hz induction motor has primary leakage mpedance of 1 + j2  and secondary leakage mpedance referred to the primary at standstill

Representation of magnetic fields, The direction of the magnetic field line...

The direction of the magnetic field lines is given by 'Maxwell's Right-Hand corkscrew rule'  The thumb of the right hand indicates the direction of current flow in the wire and

Measurement, explain a basic measurement system

explain a basic measurement system

Read-and-write memory, Q. Read-and-write memory? Writing is the same as...

Q. Read-and-write memory? Writing is the same as storing data intomemory and reading is the same as retrieving the data later. RAM is said to be volatile because its contents a

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