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
Illustrate about the Digital televisions Microprocessor would be used to control the below features, for instance: - Automatically tuning into television stations - allow

what is crossmagnetisation in dc generator

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize th

A circuit having of a resistor connected in series with a 0.5µF capacitor and has a time constant of 12 ms. Verify: (a)  The value of the resistor (b)  The capacitor voltage

Usage: Because of the above inherent drawbacks, fixed bias is seldom used in linear circuits (that is those circuits which use the transistor like a current source). Instead,

Consider the magnetic circuit of Figure with an air gap, while neglecting leakage flux. Correct for fringing by adding the length of the air gap l g = 0.1 mm to each of the other

Explain superconductivity and explain the effect of magnetic field on superconductors. Various metals become superconducting below a temperature that is the characteristic of t

I would like to know if you can help me with the attached microprocessor assignments my email address is . also let me how much in cost in $US

Transparent latch D flip  Flop A typical  example  of this  type of D flop  is 7475 shown  in figure when CLK  connected is enable signal is high and the flip  flop  is enabled