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 is the maximum entrance angle max, Calculate the N.A of a step index f...

Calculate the N.A of a step index fibre having n 1 =1.48 and n 2 =1.46. What is the maximum entrance angle ψ max for this fibre if the outer medium is air with n 1 =1.0? Given

What are the kinds of transformations, What are the kinds of transformation...

What are the kinds of transformations? Illustrate each with the help of homogeneous matrix form in 3-D.

Design a matching network of balanced stubs, A certain cellular telephone a...

A certain cellular telephone antenna has an input impedance at f=1.0 GHz modeled by a shunt R-C combination, with R=200Ω and C=2.0pF. Because of manufacturing restrictions, you can

Meters and measurements, The subject of electrical measurements is such a l...

The subject of electrical measurements is such a large one that entire books have been written on the topic. Only a few basic principles will be introduced here. Practical measurem

Determine the current in the circuit and the voltage, Q. Two identical junc...

Q. Two identical junction diodes whose volt-ampere relation is given by Equation in which I S = 0.1 µA, V T = 25 mV, and η = 2, are connected as shown in Figure. Determine the cu

Explain the power transmission lines, Explain the Power Transmission Lines ...

Explain the Power Transmission Lines Transmission and distribution of electric power is accomplished by using overhead lines or underground cables. Overhead lines are normally

What do you mean by oscilloscope, Q. What do you mean by Oscilloscope? ...

Q. What do you mean by Oscilloscope? To measure time-varying signals (voltages and currents), an instrument known as an oscilloscope is employed. It can be used as a practical

Explain temperature dependency in semiconductors, Explain temperature depen...

Explain temperature dependence of electrical resistivity and conductivity in semiconductors. The electrical conductivity of the semiconductors changes considerably with temper

Advantages and disadvantages of direct coupled coupling, Q. Mention the adv...

Q. Mention the advantages and disadvantages of direct coupled coupling?       Advantages:             1.Simple circuit due to minimum use of resistor             2.Low

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