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
1.)  A three phase, D0 HP, 1765 rpm, BA0 V induction motor operating at three quarter load has an efficiency of 91% and a power factor of 87%. Determine active power, apparent pow

In this case, 24 simultaneous calls can be put through switch. Generally a 24-outlet Uni-selector is used as a selector hunter. Every one of the 24 outlets is connected to one two-

Q. Can you explain Binary Number Systems? The Binary numbers are used to represent digital information because like most digital systems, binary numbers have only two possible

Q. Explain Analog communication system? Analog signals in an analog communication system can be transmitted directly via carrier modulation over the communication channel and d

Abalanced three-phase, 60-Hz voltage is applied to a three-phase, two-pole induction motor. Corresponding to a per-unit slip of 0.05, determine the following: (a) The speed of t

Discuss any one application of 8254 Programmable Interval Timer in detail. Mode1 causes the counter to treat as a retriggerable monostable multivibrator one shot. The G inpu

Consider the circuit shown in Figure in the t -domain as well as in the s-domain. Formulate the s-domain nodal equations and use MATLAB to solve for V A (s) and V B (s).

Q. Which of the 3 transistor configuration is best to use in cascade if maximum voltage gain is to be realized?  The common collector configuration is not used for intermediate

Q. What are the benefits of ccs over in-channel signalling? The benefits of CCS over in-channel signalling are listed below: a. Information can be exchange between processor

Revenue Loss Due to Loss of Opportunity to Serve The revenue loss because of "loss of opportunity to serve" is a extremely relevant but less visible aspect of revenue loss. Gu