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

Superposition theorem, what is the disadvantages of superposition theorem?

what is the disadvantages of superposition theorem?

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design an Engine Control Unit (ECU) and prepare a report detailing your proposed solution. The client requires a design for a mic

Power Systems, are you able to help with power system

are you able to help with power system

Give some applications of constantan, Give some applications of constantan....

Give some applications of constantan. Constantan is an alloy of nickel and copper. It is used in thermocouples, motor starters and precision resistors.

Write short notes on the stability factor of biasing circuit, Q. Write shor...

Q. Write short notes on the Stability Factor of Biasing circuits. The degree of success achieved in stabilizing Ic in the face of variations in Ico is expressed in terms of sta

Find the quantum levels, A uniform quantizer is said to have 16 levels, and...

A uniform quantizer is said to have 16 levels, and hence is called a midriser. The saturation levels are to correspond to extreme values of the message of 1 V ≤  f(t) ≤ 17 V. Find

Revenue protection and technology interventions in metering, Revenue Protec...

Revenue Protection and Technology Interventions in Metering The power supply industry has reached an impasse where urgent steps are needed to improve the financial health of t

Convolution, Convolution :   (i) Express this function in terms of kern...

Convolution :   (i) Express this function in terms of kernel coefficients and convolve with image class.png, (x,y are coordinates of pixels) Io(x,y)=I(x+1,y)-2*I(x,y)+I(x-1,

Dc electric motors, T h er e are three main types -   The Shu...

T h er e are three main types -   The Shunt Connected DC motor in which the armature coils are connected in parallel with the field coils   The Serie

Determine the mechanism of generation of the voltage, (a) Identify the semi...

(a) Identify the semiconductor type in the above diagram. (b) Explain the mechanism of generation of the voltage V AB in the above diagram. (c) An experimental setup like th

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