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

Dc motor, Why rhehostat is not used in the field of dc series motor

Why rhehostat is not used in the field of dc series motor

Compute the efficiency of the autotransformer, The single-phase, 50-kVA, 24...

The single-phase, 50-kVA, 2400:240-V, 60-Hz, two-winding distribution transformer is connected as a step-up autotransformer, as shown in Figure. Assume that the 240-V winding is pr

Explain the effect of magnetic field on superconductors, Explain supercondu...

Explain superconductivity and explain the effect of magnetic field on superconductors. Various metals become superconducting below a temperature that is the characteristic of t

Discuss the benefit and limitations of utilizing wind energy, a. Discuss th...

a. Discuss the benefits and limitations of utilizing wind energy for electricity generation. b. Draw the block diagram representation of a thermal power generation unit. Illustr

Find the ratio of the forward to the reverse current, Assume that an abrupt...

Assume that an abrupt Si p-n junction with area 10-4 cm2 has NA=10 17 /cm 3 and ND=10 17 /cm 3 is working at room temperature. It is given that μ n = 700 cm 2 /v-s, μ P =250 cm

Common-drain jfet amplifier, Q. Common-Drain JFET Amplifier? Figure (a)...

Q. Common-Drain JFET Amplifier? Figure (a) shows a CD JFET amplifier in which resistors R 1 , R 2 , and R SS are selected by the bias design, and capacitors CG and CS are chos

Discuss the disadvantages of an rc coupled amplifier, Q. Discuss the disadv...

Q. Discuss the disadvantages of an RC coupled amplifier? RC coupled amplifiers have a few disadvantages. The resistors use dc power and so the amplifier has low efficiency. The

#titl4 bit binary addere.., Ask question #Madvantages of 4 bit binary adder...

Ask question #Madvantages of 4 bit binary adder inimum 100 words accepted#

Adc instruction, ADC   Instruction This instruction is used to add th...

ADC   Instruction This instruction is used to add the contents of any register of any register  memory location and carry  flag with the  contents of accumulator  and result  i

Principle of oscillation in an rc phase shift oscillator, Q. What is the ba...

Q. What is the basic principle of oscillation in an RC phase shift oscillator. With a neat sketch explain its working? For producing oscillations there must have positive feedb

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