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
Q. Can you explain twos Complement Division? 2's complement division is repeated 2's complement subtraction. The 2's complement of the divisor is calculated, and then added to

List the addressing modes supported by 8051. 1. Register addressing  2. Direct  addressing 3. Register indirect addressing 4. Immediate addressing 5.Register addres

general functions of time base generator

For the circuit of Fig 1a: (i) Using Ohm's Law , determine the equivalent resistance across the battery (ii)  determine the current through each resistor (iii) the arrang

Methods of Testing Irrespective of reasons, testing is commonly carried out 1. On site, or 2. In a Meter Testing Station (MTS) accredited as per IS/ISO/IEC 17025.

a) Describe Schmitt trigger with the help of transfer characteristics. b) Also get the expression of hysteresis voltage VH and output waveform for sinusoidal input signal

What do you understand by solid modeling and wireframe modeling in CAD systems? Explain and compare the both modellings. Describe the following 1. Boundary representation 2.

a) What is meant by Ripple Voltage?  Measure the Ripple Voltage Amplitude, Frequency and DC Offset b) Describe how Ripple Voltage could be decreased.

Problem (a) Give an example of a power signal and one example of an energy signal. (b) Given a periodic signal x (t) = A sin (2Bft). Calculate the power Px. (c) Diffe

Q. Explain Digital Signal Formatting? After quantization and coding the samples of the message, a suitable waveform has to be chosen to represent the bits. This waveformcan the