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
This problem concerns entropy There are hundred students in a midterm exam. There are 5 grades and the number of students having each grade is shown below. At a min

What do you mean by Circuit Analysis Techniques?   One simplifying technique often used in complex circuit problems is that of breaking the circuit into pieces of manageable

Switching Characteristics The switching  characteristics of power MOSFET the delay time and rise time are responsible to remove the  effect of internal capacitance of the devi

1. A very narrow laser beam in air is shone into a sphere of solid glass that has a uniform refractive index n>1 and radius ? . The beam makes an angle a in air with the normal to

You are required to design and document the hardware design for Lift Control Unit (LCU) as required by the questions/specification in section 2 above, based on a 68HC12D60 microcon

Example Memory to  Registers Example: Write  assembly  language  statement  to copy  data byte  36H  stored  at 2025 H  to register B. Solution : Assuming 2025 H is sto

Flow Chart and Cause-Effect Diagram Flow Charts Flow charts are pictorial representations of a procedure. By breaking the procedure down within its constituent steps, f

How do I calculate the line-cable and cable-line values of reflection and refraction coordinates?

General  Purpose  Registers Registers B, C ,D, E H , and L   are 8 bit  general  purpose  registers. These  registers store  8 bit  data  temporarily  for processing. Some

Bi Directional Buffer 74LS245 This types  of bi directional  buffer is required for data  bus as it has  to function as bi directional bus. The logic  diagram  of such  buffer i