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

Multiprocessing - many processors many users many programs , Multiprocessin...

Multiprocessing - Many Processors Many users Many Programs  Multiprocessing or also  called  distributed processing system  provides solution to problems of above  timesharing

What do you mean by exponent, Q. What do you mean by Exponent? The expo...

Q. What do you mean by Exponent? The exponent field needs to represent both negative and positive exponents. To perform this, a bias is added to the actual exponent in order

Transistor Amplifier, I need help designing a BJT amplifier with that meets...

I need help designing a BJT amplifier with that meets the following parameters: voltage gain greater than 300, Ic(Vce=0)=2uA, Vcc=20V.

Microprocessor, Memory map of tpa in a personal computer and explain such o...

Memory map of tpa in a personal computer and explain such of the areas in brief

What are flip flop circuits in digital electronics, What are flip flop circ...

What are flip flop circuits in digital electronics? Discuss race around condition in J-K Flip Flop

Construction of inductor, Construction of inductor An inductor is usual...

Construction of inductor An inductor is usually constructed as a coil of conducting material, typically opper wire, wrapped around a core either of air or ferrous material.

Power distribution, Power Distribution: - The Energy Conservation Act,...

Power Distribution: - The Energy Conservation Act, 2001, gives the legal framework, institutional arrangement and a regulatory mechanism at the Central and State level to emba

Determine lower and upper cut-off frequency, Q. In an amplifier, the maximu...

Q. In an amplifier, the maximum voltage gain is 1500 and occurs at 1kHz. It falls to 1060.5 at 20kHz and at 20Hz. Determine (i) lower cut-off frequency (ii) upper cut-o

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