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

Explain working of digital-to-analog converters, Q. Explain working of Digi...

Q. Explain working of Digital-to-Analog Converters? Digital-to-Analog (D/A) Converters For the results of digital computations to be used in the analog world, it becomes n

Illustrate how to replace the ht fuse, Illustrate how to replace the HT Fus...

Illustrate how to replace the HT Fuse on a 6-pole and 4-pole structure? Ans: a) Open switch on 6-pole or 4-pole. b) Connect the discharge rod between earth and conduc

Current transformers., CT 10VA, 50A/5A, 6ohz, 2.4KV required nominal primar...

CT 10VA, 50A/5A, 6ohz, 2.4KV required nominal primary voltage?

Give an introductive notes about fet amplifier, Q. Give an introductive not...

Q. Give an introductive notes about FET amplifier ?  The small signal models for the common source FET can be used for analyzing the three basic FET amplifier configurations: (

Effect of feedback on sensitivity to parameter changes, Q. Effect of feedba...

Q. Effect of feedback on sensitivity to parameter changes? A good control system, in general, should be rather insensitive to parameter variations, while it is still able to fo

What is permeability of magnetic materials, Q. What is permeability of magn...

Q. What is permeability of magnetic material? For magnetic material media, the magnetic flux density B, expressed in tesla (T) or Wb/m 2 , and the field intensity H, expressed

Low investments in transmission and distribution system, Low Investments in...

Low Investments in Transmission and Distribution System The investment on T&D system in our country has commonly been lower than that on generation. It is hugely believed in

Aggregate technical and commercial loss, Aggregate Technical and Commercial...

Aggregate Technical and Commercial Loss It is unfortunate in that addition to T&D losses, there is also a loss in revenue because of non-realisation of billed demand which lea

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