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

Draw a schematic diagram of transformer connections, Q. Three single-phase,...

Q. Three single-phase, 10-kVA, 2400/120-V, 60- Hz transformers are connected to form a three- phase, 4160/208-V transformer bank. Each of the single-phase transformers has an equiv

Explain bios, Explain BIOS The IBM PC has in its ROM a collection of ro...

Explain BIOS The IBM PC has in its ROM a collection of routines, each of which performs some particular function such as reading a character from keyboard, writing character to

Calculate the current flowing through the inductor, The circuit is altered ...

The circuit is altered by replacing the capacitor, C1 with an inductor of 150mH and left with the switch in position (a) for a long time. At time t=0, the switch is moved from posi

Transformes, how to calculate the sending line voltage

how to calculate the sending line voltage

Collector-to-base bias, Collector-to-base bias: Figure: Collec...

Collector-to-base bias: Figure: Collector-to-base bias This configuration uses negative feedback to avoid thermal runaway and stabilize the operating point. In th

Tariff filing, Tariff Filing Asset-wise details for each business ...

Tariff Filing Asset-wise details for each business of licensee; Audited accounts and financial statements, including cash flows for the preceding years and monthly bal

Discuss crp, Question 1 Explain the construction of telephone network ...

Question 1 Explain the construction of telephone network Question 2 What is out-of-band signaling? Explain Question 3 Describe STP (Signaling Transfer Point) Questio

Obtain the time domain functions, Let ω = 2π × 60 rad/s corresponding to a ...

Let ω = 2π × 60 rad/s corresponding to a frequency of 60 Hz. (a) Consider v(t) = 100 √2 cos(ωt + 30°) V and i(t) = 10 √2 sin(ωt + 30°) A. Find the corresponding phasors ¯V and ¯

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