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

Find the antenna temperature, Q. If an antenna has an available noise power...

Q. If an antenna has an available noise power of 1.6 × 10 -15 W in a 1-MHz bandwidth, find the antenna temperature.

Hahaha, Ask question #Minimum 10gzhahahaau0 words accepted#

Ask question #Minimum 10gzhahahaau0 words accepted#

Dc Machine, Why maximum power output is given by a machine at an efficiency...

Why maximum power output is given by a machine at an efficiency of 50 percent?

Charge carriers in semiconductors, Charge Carriers in Semiconductors ...

Charge Carriers in Semiconductors In a metal, the atoms are imbedded in a "sea" of free electrons, and these electrons can move as a group under the influence of an

Variation of energy bands with alloy composition, Variation of Energy Bands...

Variation of Energy Bands with Alloy Composition The  band  structures  of  III-V  ternary  and  quaternary  compounds  modifies  as  their composition is varied. There

Calculate generated emf, Q.  A shunt generator gives full load output of 3...

Q.  A shunt generator gives full load output of 30 kW at a terminal voltage of 200V. The armature and field resistance are 0.05? and 50? resp.. The iron and friction losses are 10

R = 10 ohms VB = 5V V1 is the sinusoidal wave having, Ask questionDraw the ...

Ask questionDraw the following circuits on the PROTEUS and check the output waveform on oscilloscope #Minimum 100 words accepted#

What do you mean by number systems, Q. What do you mean by Number Systems? ...

Q. What do you mean by Number Systems? The Digital circuits are inherently binary in nature, but numerous types of representations of numerical data are in use. The represen

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