Filtering, Electrical Engineering

Assignment Help:

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?


Related Discussions:- Filtering

Ampere''s law, This is at the heart of the analysis of electromagnetics. It...

This is at the heart of the analysis of electromagnetics. It is based on a series of experiments conducted by the French scientist Ampere (1775 - 1836), in which the force between

Fet operation, FET operation: Figure: I-V characteristics and o...

FET operation: Figure: I-V characteristics and output plot of a JFET n-channel transistor. The FET manages the flow of electrons (or electron holes) from the sourc

Why do we cascade amplifiers, Q. Why do we cascade amplifiers? Why is RC co...

Q. Why do we cascade amplifiers? Why is RC coupling the most widely used coupling between 2 stages of a cascading amplifier? The voltage or power gain or frequency response obt

Dc link scherbius drive - motor control , DC Link Scherbius Drive This ...

DC Link Scherbius Drive This type of scheme is shown in figure. This circuit  allows both  sub synchronous  and super synchronous speed control. In case  of sub synchronous spe

Comparison of induction and dielectric heating , Comparison  of Induction ...

Comparison  of Induction and Dielectric Heating After  studying the induction and  dielectric  heating  followings  points  may consider for  comparison  between  induction an

Explain norton''s theorem procedure, Norton's theorem procedure: 1.  Re...

Norton's theorem procedure: 1.  Remove R L from the circuit. Search I N by shorting links output terminal. 2.  Search R N by short-circuit voltage source or open-circuit

Sim set interrupt mask instruction, SIM Set Interrupt Mask Instruction ...

SIM Set Interrupt Mask Instruction This  instruction is used  to mask unmask 8085 interrupts and send  serial  output  data. The accumulator  is used to load the  require data

Show that operating point does not depend on beta, Q. Prove mathematically ...

Q. Prove mathematically that the operating point does not depend on beta, in a potential divider bias circuit ? To determine the operating point, consider the input section of

Define the property under which resistance of metals vanish, The property d...

The property due to which the resistance of some metal or compound vanishes under certain conditions is (A) Semi conductivity.                     (B) Super conductivity.

What are the important requirements of a insulating material, What are the ...

What are the important requirements of a good insulating material? Important requirements of good insulating materials:- The necessity of good insulating materials can be cl

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd