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

Compute the smallest load resistance, Q. A practical voltage source is repr...

Q. A practical voltage source is represented by an ideal voltage source of 30 V along with a series internal source resistance of 1.2 . Compute the smallest load resistance that c

Construction and operation of enhancement mosfet, Q. Explain the constructi...

Q. Explain the construction and operation of Enhancement MOSFET? The construction of an N-channel enhancement MOSFET is shown in figure below. Two highly doped N + regions are

Competition, how to be prepare for gate....

how to be prepare for gate....

Determine the dielectric constant of air in practically, The dielectric con...

The dielectric constant of air is practically taken as (A) more than unity.                         (B) Unity.  (C) less than unity.                           (D) Zero.

Find the expression for the no-load speeds, Q For a three-phase, fully cont...

Q For a three-phase, fully controlled, recti?er-fed, separately excited dc motor, corresponding to ideal no-load operation, find the expression for the no-load speeds. Comment on w

Matlab, what is the future scope of matlab in india?

what is the future scope of matlab in india?

On line ups systems - power supplies , On line UPS Systems In this Ups ...

On line UPS Systems In this Ups  there are two  switches  one is  main static switch  and another  is Ups  static  switch . in normal  operation the Ups  static switch  remains

Carrier modulation by digital signals, Q. Carrier Modulation by Digital Sig...

Q. Carrier Modulation by Digital Signals? Digitally modulated signals with low-pass spectral characteristics can be transmitted directly through baseband channels (having low-p

Introduction to problem based learning, The Problem Based Learning is an ap...

The Problem Based Learning is an approach to learning prepares the students to engage with challenges similar to real world problems.The VEB3001-Problem Based Learning has been an

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