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

Logically and the contents of memory, Logically AND the contents of memory ...

Logically AND the contents of memory Contents of memory  location,  whose address is specified by HL register pair are logically AND with the  contents  of the accumulator. The

Biasing the bjt, Q. Biasing the BJT? A simple method of biasing the BJT...

Q. Biasing the BJT? A simple method of biasing the BJT is shown in Figure. While no general biasing procedure that will work in all cases can be outlined, a reasonable approach

How many interrupts does 8085 have, How many interrupts does 8085 have, men...

How many interrupts does 8085 have, mention them The 8085 has 5 interrupt signals; they are INTR, RST7.5, RST6.5, RST5.5 and TRAP

Speed control of dc series motor - motor control , Speed Control of DC Seri...

Speed Control of DC Series Motor A half  wave  circuit  for the  speed  control of DC  series motor is  shown in figure and corresponding wave from  is shown  in figure  consis

Alternater, if the prime mover input of an alternater connected directly t...

if the prime mover input of an alternater connected directly to an infinite bus in increased,then its?

About semi conductor, explain compensation and charge neutrality in GaAs

explain compensation and charge neutrality in GaAs

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

Give the properties and application of cotton. Cotton : It is base material for insulating fibres. Properties: It can be enhanced by impregnating with varnish. 1)

Crm triangle, CRM Triangle The following diagram which is called as CR...

CRM Triangle The following diagram which is called as CRM Triangle. Strategy refers to the whole stand taken through the company. It could selected a defensive posture in t

Determine the binary values of the first three samples, A 3-bit quantizer i...

A 3-bit quantizer is utilized to transform the following signal into a binary digital signal. Determine the binary values of the first three samples (assuming the quantizer rounds

Write a note on superconductors, Write a note on superconductors. Super...

Write a note on superconductors. Superconductors- The resistivity of most metals rises with increase in temperature and vice-versa. Some metals and chemical compounds are there

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