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

Merits and demerits of voltage divider bias, Merits and Demerits of Voltage...

Merits and Demerits of Voltage divider bias: Merits: 1. Not like the above circuits, only one dc supply is essential. 2. Operating point is approximately independent o

Find the duty ratio and neglecting friction and windage, A 440-V, 60-Hz, si...

A 440-V, 60-Hz, six-pole, wye-connected, wound-rotor induction motor with a full-load speed of 1170 r/min has the following per-phase parameters referred to the stator:R 1 = R' 2

Explain repetitive coverage of satellite, Q. Explain Repetitive coverage of...

Q. Explain Repetitive coverage of satellite? Due to repeated passes of the satellite over the same reach, data is repeatedly acquired. Therefore, comparisons of a dynamic pheno

1- phase full bridge inverter with r- load , 1- phase  Full Bridge Invert...

1- phase  Full Bridge Inverter with R- Load 1-phase full  bridge inverter with resistive load R i it has  advantage over 1-? half  bridge  inverter that it does  not require

Name the different methods used for data transmission, What are the differe...

What are the different types of methods used for data transmission? The data transmission among two points involves unidirectional or bi-directional transmission of meaningful

Determine the overall power factor, A three-phase, wye-connected, cylindric...

A three-phase, wye-connected, cylindrical-rotor, synchronous motor, with negligible armature resistance and a synchronous reactance of 1.27 per phase, is connected in parallel wit

Role of a bus arbiter in a multiprocessor configuration, Discuss the role o...

Discuss the role of a bus arbiter in a multiprocessor configuration. Bus arbiter: It functions to resolve priority among bus masters and permits only one device at a time to

Find the magnetic-field force exerted on the moving bar, Consider the arran...

Consider the arrangement shown in Figure. A conductor bar of length l is free to move along a pair of conducting rails. The bar is driven by an external force at a constant velocit

Explain the discrete time systems, Explain the Discrete Time Systems? A...

Explain the Discrete Time Systems? A system operates on an input signal, x[n] and output the results, y[n]. For example, a digital filter (a system) can be represented by the f

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