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

Draw and explain a differential circuit, Q. Draw and explain a differential...

Q. Draw and explain a differential circuit A differentiator is a high pass RC circuit having a very small time constant. It is a circuit which gives an output voltage proportio

Emirrer feedback bias, RE should be made large enough to swamp out rB/ B. h...

RE should be made large enough to swamp out rB/ B. how does making RE large saturate the transistor b

P-n junction, P-N Junction   A p-n junction is made by joining P-ty...

P-N Junction   A p-n junction is made by joining P-type and N-type semiconductors together in extremely close contact. The word junction consider to the boundary interface

What are shift registers - sequential logic circuit, What are Shift Registe...

What are Shift Registers - Sequential Logic Circuit? The Shift registers are a type of sequential logic circuit that mainly for storage of digital data and they are a group of

Clampers, just to put an assignment Give only short details that are impor...

just to put an assignment Give only short details that are important Specially bised clamper

Factors involved in the voltage build up of shunt generator, Q.   List and ...

Q.   List and explain the factors involved in the voltage build up of shunt generator. Ans. following factors are involved in voltage build up of shunt generation

Total harmonic distortion, Q. Explain the term total harmonic distortion. D...

Q. Explain the term total harmonic distortion. Describes the functionary of a total harmonic distortion analyzer. Total Harmonic Distortion: Nonlinear behaviors of circuit el

What do you mean by byte, Q. What do you mean by Byte? Without question...

Q. What do you mean by Byte? Without question, the most vital data structure used by the 80x86 microprocessor is the byte this is true since the ASCII code is a 7-bit non-weigh

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