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
States Kirchoff's Voltage Law Kirchoff's Voltage Law (KVL) describes in any closed loop in a network, the algebraic sum Figure of the voltage drops (i.e. products of current

Construction - UniJunction Transistor: Construction: The basic structure of uni junction transistor is shown in fig. (a). It essentially consists of a lightly doped N type s

XTHL Exchange top of the stack with HL Instruction The contents  of top  two location of the  stack are exchanged with the  contents of HL register pair. The contents  of reg

How to solve using kcl and kvl

how thyristor work in speed control??

Explain the AND GATES - Microprocessor? The AND GATE has a logic 1 or high output if the entire inputs are high. The boolean and symbol expression for a 3-input AND gate is sho

Personal  safety Power supplies can be very dangerous. This is specifically true of high voltage circuits, but anything over 12 V must be treated as lethal potentially. A po

A three - phase,wye - connected, 2500-kVA, 6600- V, 60-Hz turboalternator has a per-phase synchronous reactance and an armature resistance of 10.4 and 0.071 , respectively. Comput

Q. The DeMorgan's theorems suggest that the basic logic operations can be realized by use of inverters and NAND gates only. For the circuits shown in Figure,  find the truth table,

For the circuit shown in Figure, use KCL and KVL to determine i 1 , i 2 , v bd and v x . Also, find v eb .