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
I`m a 3rd year electrical engineering student studying in Canada, and there is a new course they added in my university for 3rd year students called Engineering Project. from the

Distinguish between ferromagnetic and paramagnetic materials, mentioning at least one example of each. Ferromagnetic Materials: These are materials wherein magnetic dipoles i

Add Register and Carry with Accumulator The contents  of register R and the  carry flag are added to the  contents of the  accumulator  and result of  addition  is also  sto

Q. Use the node-voltage method to find the current I through the 5- resistor of the circuit of Figure.

Q. Show the Classifications of Data Network? Classifications of Data Network: Data Networks are categorized according to their geographical coverage: • Wide area networks

Question: a) Give one reason why a "subroutine" could be written into the body of the main program. b) With the help of the diagram below, write down the sequence of the ni

Q. Compare in-channel signalling with common channel signalling? Network wide signalling also involves end to end signalling between originating exchange and the terminating ex

how the clipper circuits are working? explanation of working of clipper circuits

1. (a) Consider a sinusoidal signal m(t) = A cos(2 Π f m t) applied to a delta modulator with step size . Determine the range of the step size so that slope overload will be avoide

Q. Consider the three BCD numbers listed below. 0001 1000 0101 1000 0010 0001 0011 1000 0100 0011 0101 0101 a) Convert these numbers to their decimal values. b) Conv