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

State advantages of washing machine, State advantagesof Washing machine ...

State advantagesof Washing machine Main advantages are that these washing machines are fully automatic (wash programs are fully stored) it makes them easy to use, they are chea

Advantages and disadvantages of alloying steel with silicon, State the adva...

State the advantages and disadvantages of alloying steel with silicon for use as magnetic materials in transformer and electric machines. Extensive utilize, is made of iron-sil

Ohms law, Normal 0 false false false EN-US X-NONE X...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Global positioning system, Global Positioning System: For power utilit...

Global Positioning System: For power utilities, the basic objective of using Global Positioning System (GPS) and GIS should be to: enhance the efficiency of transmissio

3-phase 4 wire meters with ct and md, 3-Phase 4 Wire Meters with CT and MD ...

3-Phase 4 Wire Meters with CT and MD If load is commonly more than 50 A, CT operated meters should be used. It is to be remembered that CTs should be properly selected for acc

Explain current-to-current amplifier, Q. Explain Current-to-Current Amplifi...

Q. Explain Current-to-Current Amplifier ? The circuit given in Figure is to amplify a current fed to the input of the op amp. Applying KCL at Y, i 1 + i S = i o S

Loops and subroutines, 1.....If viewing this through the Assignment tool, c...

1.....If viewing this through the Assignment tool, click the title above to go to the Submissions area. Introduction The purpose of this experiment is to examine the opera

Electromagnetic fields and waves, QUESTION: Electromagnetic Fields and Wave...

QUESTION: Electromagnetic Fields and Waves (a) Illustrate with help of diagrams the Cartesian, Cylindrical and Spherical coordinate systems. (b) Lay down the assumptions fo

What is cascade, An arrangement of Windows so every window is neatly stacke...

An arrangement of Windows so every window is neatly stacked with only the title bar of every window is showing.

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