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

In what way is program control superior to wired control, Q. Classify switc...

Q. Classify switching systems. In what way is stored program control superior to hard wired control? Ans: Classifications of switching systems are givenin block diagram belo

What is tri-state logic, Three Logic Levels are used and they are High, Low...

Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri

Dsp, A pure sine wave with a frequency of 100Hz is sampled at 150Hz. At whi...

A pure sine wave with a frequency of 100Hz is sampled at 150Hz. At which one of the following frequencies would you expect an alias?

Human resources - kpi, Human Resources - KPI It is the responsibility ...

Human Resources - KPI It is the responsibility of management to have the lean, capable, customer friendly organization that strives for catering to diversified need of all the

ELECTRIC DRIVES, BLOCK DIAGRAM OF DIGITAL CONTROL OF ELECTRIC DRIVES

BLOCK DIAGRAM OF DIGITAL CONTROL OF ELECTRIC DRIVES

Find the required kva rating of a synchronous capacitor, An industrial plan...

An industrial plant consumes 500 kWat a lagging power factor of 0.6. (a) Find the required kVA rating of a synchronous capacitor to improve the power factor to 0.9. (b) If a

Masking - immediate with accumulator instruction , Masking As we know...

Masking As we know the MASJ is used  to cover  some part  of our  face  which  we want to hide  and to  show  other part of the face  which  we want to show. Similarly  the

What is meant by cross-compiler, Ans) A program runs on one machine and imp...

Ans) A program runs on one machine and implements on another is known as cross-compiler Programs which compile on One Machine and implements on another machine is known cross

Relative permeability, The force between two wires 1 metre apart and each c...

The force between two wires 1 metre apart and each carrying 1 amp is 2 x 10 -7 Newtons when in a vacuum (or in practice, air).However, it is found experimentally that the force is

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