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 are advantages of segmentation, What are advantages of segmentation...

What are advantages of segmentation ? However because the segment register is 16 bit broad and the memory requires 20 bits for an address the 8086 appends 4 bits segment reg

Evaluate the temperature corresponding to a thermistor, Question: (a) A...

Question: (a) A tube from one end of a differential pressure transducer is placed at the bottom of a cylindrical cup (D= 0.8m, H= 0.1m) to measure mass flow rate. The cup i

Electrical System Design, List four sources of information which are essent...

List four sources of information which are essential to the designer of this electrical installation

Clippers, Which clipper would you prefer between the series and the shunt c...

Which clipper would you prefer between the series and the shunt clipper? Why?

Opimization, I want to know latest optimization technique and algorithm for...

I want to know latest optimization technique and algorithm for modal reduction and pid controller design

Determine the stresses set up in the cylinder and steel wire, A copper cyli...

A copper cylinder 40 cm diameter and 10 mm thick is nearly wound with a layer of 4mm diameter steel wire under a tensile stress of 80 Mpa. If the steam under a pressure of 5 Mpa is

Determine the resulting waveform, Two pure sine waves have similar amplitud...

Two pure sine waves have similar amplitude "A" and frequency "f." They are out of phase through 180 degrees. If these two signals are added, the resulting waveform will be:

Give illustration of and and or gate - microprocessor, Give Illustration of...

Give Illustration of AND and OR Gate - Microprocessor? Illustration: The image below demonstrate the 4 possible inputs into a 2-input AND gate and all the corresponding outputs

Importance of transistor, Importance: The transistor is the main activ...

Importance: The transistor is the main active component in practically all current electronics, and is considered through many to be one of the greatest inventions of the 20 t

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