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

What is the function of ct and p.t, Q. What is the function of CT and P.T a...

Q. What is the function of CT and P.T and where they are used? Ans: The full form of CT is Current transformer and is used for calculating of current. The full form of PT is

FET, shockely equation?

shockely equation?

Finance and accounting in kpi, Finance and Accounting in KPI Every bus...

Finance and Accounting in KPI Every business is completed to earn some profit and it is the underline concept. The main tasks are to manage the finances efficiently to meet th

Compute the capacitance per unit length, Write a program implementing the c...

Write a program implementing the conjugate gradient method (un-preconditioned). Solve the matrix equation corresponding to a finite difference node-spacing, h = 0.02m in x and y di

Sketch the d.c. equivalent circuit of the amplifier, Question: Figure s...

Question: Figure shows the basic circuit of the BJT Common Emitter Amplifier. (a) What is the function of RB, RC, Ci, Co and CE ? (b) (i) Sketch the d.c. equivalent circu

What is the colour of the light emitted from the led, Question: a) Des...

Question: a) Describe five advantages of LED lighting over conventional incandescent lighting. b) State two impairments that reduces the radiant flux of a surface-emitting

find the sending end voltage and current, A 3-phase transmission line is 2...

A 3-phase transmission line is 200km long. The line has a per phase series impedance of 0.25+j0.45 Φ/km and shunt admittance of j7.2ΦS/km. The line delivers 250MVA, at 0.6 lagging

Describe the basic types of number systems, Q. Describe the basic types of ...

Q. Describe the basic types of Number Systems? Probably the largest stumbling block most beginning programmers encounter when attempting to learn assembly language is the commo

Explain mechanisms of propagation of radio communication, Explain mechanism...

Explain mechanisms of propagation of radio communication. Radio communication deals with electronic radiation of electromagnetic energy from one point to another through atmosp

Estimate the the volume of water in the tank, A conical tank is shown in Fi...

A conical tank is shown in Figure. The tank is filled with water.  Using MATLAB, determine: a.   the volume of water in the tank b.   the weight of the water in the tank.

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