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

Find the net force experienced by a positive charge q, Q Two charges of equ...

Q Two charges of equalmagnitude 5µC but opposite sign are separated by a distance of 10 m. Find the net force experienced by a positive charge q = 2 µC that is placed midway betwee

Regenerative braking control - motor control , Regenerative Braking Control...

Regenerative Braking Control In this  methods  motor  behaves like a  generator  and the kinetic energy of the  motor  and connected load is  returned to the supply. If means

Wye -delta conversion, how to write theory background on practical about t...

how to write theory background on practical about this topic.

Explain global positioning systems, Q. Explain Global Positioning Systems? ...

Q. Explain Global Positioning Systems? Modern communication systems abound in practice: cellular phones, computer networks, television satellites, and optical links for telepho

stack pointer after the pop instruction, What is the position of the Stack...

What is the position of the Stack Pointer after the POP instruction? Ans) The address line is 02 greater than the previous value.

Radio hardware, Filters 1. You need to design a lowpass filter with cutoff ...

Filters 1. You need to design a lowpass filter with cutoff frequency Fc= 1MHz. a. What is the minimum filter order required for 30 dB rejection (-30 dB gain) of 10 MHz? b. What is

Explain the block diagrtam of d.c. voltmeter , Q.   Explain the block diagr...

Q.   Explain the block diagrtam of D.C. voltmeter with direct coupled amplifier. Sol. D.C, voltmeter with direct coupled Amplifier         The D.C. electronic voltmeters

Triac - power semiconductor devices , Triac  As the  name  suggests T...

Triac  As the  name  suggests TRIAC  is advice which  has three  electrodes and works  on AC.  The three terminals of triac are MTI ( Main Terminal ) MT2 ( Main  terminal ) an

Differentiator.., in case of a differentiator will the amplitude rise or fa...

in case of a differentiator will the amplitude rise or falls?

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