Filtering, Electrical Engineering

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?

Posted Date: 2/26/2013 12:19:42 AM | Location : United States







Related Discussions:- Filtering, Assignment Help, Ask Question on Filtering, Get Answer, Expert's Help, Filtering Discussions

Write discussion on Filtering
Your posts are moderated
Related Questions
(a) Describe the four functions of the physical layer in the Internet Model. (b) (i) With the help of a diagram describe the main stages involved in the digitization of a

Q. A silicon BJT has an emitter current of 5m Aat 300 K when the BEJ is forward-biased by vBE = 0.7 V. Find the reverse saturation current of the BEJ. Neglecting ICBO, calculate iC

merits amd demerits of series and shunt clipper

Q. Mention The Three Transistor Configurations? The three transistor configurations are 1)Common emitter configuration 2)Common base configuration 3)Common collector c

: A farmer owns two barns; one north of a creek and the other south of the creek. The farmer has a Cabbage, a Goat, and a Wolf. The Farmer needs to put each item in a barn every ni

Q. Consider a pair of coupled coils as shown in Figure of the text, with currents, voltages, and polarity dots as indicated. Show that the mutual inductance is L 12 = L 21 = M by

simulate a uniform quantizer that takes as an input a vector of numbers and returns as an output the quantized vector. 1-Generate a random input vector of 10000 samples randomly in

Consider the common-emitter BJT circuit shown in Figure (a). The static characteristics of the npn silicon BJT are given in Figure (b) along with the load line. Calculate iB for v

how to design a single phase distribution circuit from a supply point to a load(lights)

What is the desirable properties of an insulation material? Insulation materials have the desirable properties are as follows: 1. Very fine dielectric strength such as of mi