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

Calculate the current flow and voltage drops, Based on Figure, using star-d...

Based on Figure, using star-delta transformation, calculate the current flow and voltage drops at 6kΩ resistor.

Single phase full wave mid point type rectifier , Single Phase Full Wave M...

Single Phase Full Wave Mid Point Type  Rectifier A single  phase full wave  mid point  type controlled  rectifier consists  two  thyristors  one centre tapped  transformer  an

Explain interrupts of 8085, Explain Interrupts of 8085. a) Maskable  in...

Explain Interrupts of 8085. a) Maskable  interrupt b)  Vectored interrupt c)  Non maskable interrupt d) Hardware interrupt e)  Software interrupt

What is meant by cross-compiler, Ans) A program runs on one machine and imp...

Ans) A program runs on one machine and implements on another is known as cross-compiler Programs which compile on One Machine and implements on another machine is known cross

Zener diode, I need to know about the zener diode

I need to know about the zener diode

Bjt, bias compensation using diode and thermistor

bias compensation using diode and thermistor

Safe conduct in electricity and gas hazards, Safe Conduct : what if a tr...

Safe Conduct : what if a trailing flex became caught up in an apparatus trolley and was cut? Or someone splashed water onto a plug, or concentrated sulphuric acid onto a flex? F

Industrial approach of speed control dc series motor, industrial approach o...

industrial approach of speed control of dc series motor

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