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

Short note on types of enclosure of machine, Q.   Write a short note on typ...

Q.   Write a short note on types of enclosure of machine. Sol.       The various types of d.c. machine :              (1) Magnetic frame or Yoke              (2)

What are the cautions to be taken, What are the cautions to be taken before...

What are the cautions to be taken before starting work on electrical installations? Ans: Before starting any electrical works on installations disconnect the power supply to

Substation preventive maintenance scheduling optimization, Introduction: ...

Introduction: The scheduling system that is followed by the maintenance department is not well established and is dependable on employee's personal judgment. There were a lot o

Explain ferrites and its uses in high frequency devices, Explain ferrites a...

Explain ferrites and its uses in high frequency devices. A group of magnetic alloys show the property of magnetisation that change, with percentage of various constituent atoms

Pins and signals , Pins  and Signals As  discussed  earlier that  808...

Pins  and Signals As  discussed  earlier that  8085  microprocessor  chip has 40 pins shown  various  pins  and signals of 8085  microprocessor. All  these  signals can be   c

Logic diagram, design and sketch an optimal circuit that takes a 4 bit num...

design and sketch an optimal circuit that takes a 4 bit number and generates an 8 bit output equal to the square of the input

Define electrical power, Electrical power Power P in an electrical circ...

Electrical power Power P in an electrical circuit is given by the product of potential difference V and current I. The unit of power is the watt, W.

Balanced score card and key performance indicators, Balanced Score Card and...

Balanced Score Card and Key Performance Indicators Every successful organization measures its performance across the subsequent parameters, for dissemination to all stakeholde

Explain soft magnetic materials, Explain Soft magnetic materials. So...

Explain Soft magnetic materials. Soft magnetic materials -They contain small enclosed area of hysteresis loop, high permeability low eddy current losses and high saturation

Charge variation with time, Q. A charge variation with time is given in Fig...

Q. A charge variation with time is given in Figure. Draw the corresponding current variation with time.

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