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

What is elementary diode circuits, Q. What is Elementary Diode Circuits? ...

Q. What is Elementary Diode Circuits? Semiconductor diodes are used in a wide variety of applications. Their usage abounds in communication systems (limiters, gates, clippers,

Daa decimal adjust accumulator instruction , DAA Decimal Adjust Accumulator...

DAA Decimal Adjust Accumulator Instruction This  instruction adjusts the contents  of the accumulator  into BDC (Binary Coded Decimal )  form  after a BCD  addition. It should

Sketch one full period of the am wave, Q. Let a(t) = [1 + m A x(t)] and x(t...

Q. Let a(t) = [1 + m A x(t)] and x(t) = cos 2πf m t, f m c , and x c (t) = A(t) cos 2πfct . (a) With m A =1, sketch one full period of the AM wave and draw the envelope by co

Example of high resistivity material, Example of high resistivity material ...

Example of high resistivity material is (A) Nichrome              (B) Silver (C) Gold                      (D) Copper Ans: Nichrome is example of high resistivity

Explain priority interrupts of 8085, Explain priority interrupts of 8085. ...

Explain priority interrupts of 8085. The 8085 microprocessor has five interrupt inputs. They are TRAP, RST .5, RST 6.5, RST 5.5, and INTR. These interrupts have a fixed prio

Induced emf, what is the difference between statically and dynamically indu...

what is the difference between statically and dynamically induced emf?

How a nand gate decoder is used for 2716 eprom memory, With neat diagram in...

With neat diagram indicate how a simple NAND gate decoder is used to select a 2716 EPROM memory component for memory locations FF800H-FFFFFH. Simple NAND gate Decoder: As the 2

Define the two stages rc coupled amplifier, a. With neat circuit diagram an...

a. With neat circuit diagram and frequency response curve define the two stages RC coupled amplifier. What are its benefits and applications? b. Sketch ideal and the actual resp

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