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

Measurement, Why delay circuit used in CRO?

Why delay circuit used in CRO?

Port address - address bus , Port Address The port  address  is of 8 bi...

Port Address The port  address  is of 8 bit  it is range from 00H  to FFH. It means  there may be total  i 256 input  ports and 256  output  port which can be accessed by 8085

Determine the value of voltage using offset diode model, Use the offset dio...

Use the offset diode model with a threshold voltage of 0.6 V to determine the value of v 1 for which the diode D will first conduct in the circuit of Figure(a).

Perfect gases avogadro''s hypothesis, Equal volumes of all gases contain th...

Equal volumes of all gases contain the samenumber of molecules when the volumes are measured at the same p and T. Therefore for a given volume at the same p and T, with the same

Discuss need of caches, Discuss need of Caches. Caches are other big t...

Discuss need of Caches. Caches are other big thing done in the last 2 decades to enhance performance. Keep things locally when they are going to be used soon. By a physics vie

Technical loss in electrical systems, Technical Loss in Electrical Systems ...

Technical Loss in Electrical Systems Technical loss is inherent in electrical systems, as all electrical devices have a few resistances and the flow of currents causes a power

What is balanced discriminator, Q. What is balanced discriminator? A ba...

Q. What is balanced discriminator? A balanced discriminator with the corresponding frequency characteristics is depicted in Figure. The rising half of the frequency characteris

Discuss the feature of pentium in brief, Discuss the feature of Pentium in ...

Discuss the feature of Pentium in brief. The Pentium is a 32-bit superscalar, CISC microprocessor.  The word superscalar is used for the processor that has more than one pipeli

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