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

Motor control , Normal 0 false false false EN-IN X-NO...

Normal 0 false false false EN-IN X-NONE X-NONE MOTOR CONTROL

What is the mobile application development all about, In the previous two y...

In the previous two years, a lot of innovation has come in the mobile computing world. Apple has launched very imaginative mobile phone, iphone and ipad along with app store. Googl

Semiconductors, Why do potential barriers breaks when a breakdown voltage i...

Why do potential barriers breaks when a breakdown voltage is application to semiconductor

Describe about reduction clause, Q. Describe about Reduction Clause? Re...

Q. Describe about Reduction Clause? Reduction clause specifies an operator as well as one or more list items. For every list item a private copy is created on every thread and

Explain how ccitt standards help in building the base band, Q. Discuss FDM ...

Q. Discuss FDM and illustrate how CCITT stndards help in building the base band? Ans: Frequency Division Multiplexing: It is the process of combining numerous informatio

Active-mode pnp transistors in circuits, Active-mode PNP transistors in cir...

Active-mode PNP transistors in circuits: In the figure, the arrows showing current point in the direction of conventional current - the flow of electrons is in the opposite di

About semi conductor, explain compensation and charge neutrality in GaAs

explain compensation and charge neutrality in GaAs

Digital logical disign, design SR latch with universal logic gates.draw and...

design SR latch with universal logic gates.draw and explain the logic diagrams

Sectoral overview and enabling framework, Sectoral Overview and Enabling Fr...

Sectoral Overview and Enabling Framework Previously, you have studied about several Acts and Policies relevant to the power sector, their aims, main features and implications

Compare procedure and macro, Compare Procedure & Macro  Accessed by CAL...

Compare Procedure & Macro  Accessed by CALL & RET instruction Accessed during assembly with name given during program implementation to macro when defined Machine code for inst

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