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

High frequency induction heaters or magnetic fields, High Frequency Inducti...

High Frequency Induction Heaters or Magnetic Fields : If this type of equipment is in use, large currents may be induced in any nearby metallic object or circuit, which will in tu

Time constant at decay of current, Time constant at decay of current In...

Time constant at decay of current In decay of current by an inductor, a method to find values of time constant similar as in rise of current through an inductor. The difference

What effect do non-tradable goods have on ppp, Q. What effect do non-tradab...

Q. What effect do non-tradable goods have on PPP? Answer: The consequence is quite substantial. In 1997 the production of non-tradable goods accounted for about 55% of U.S GN

Magnetic circuits with air gaps, The creation of a magnetic field in a ring...

The creation of a magnetic field in a ring may need to be accessed by means of an air gap. This is typically used to apply the magnetic field to a current carrying conductor to pro

Define some applications of digital counters, Define some Applications of D...

Define some Applications of Digital Counters? Digital counters are extremely useful in many applications. They can be effortlessly found in digital clocks and parallel-to-seri

Find the current source, Q. Consider the circuit shown in Figure. (a) Gi...

Q. Consider the circuit shown in Figure. (a) Given v(t) = 10e -t V, find the current source is(t) needed. (b) Given i(t) = 10e -t A, find the voltage source v (t) needed.

What are the drawbacks of microprocessor, There is a limitation on the size...

There is a limitation on the size of data. Most Microprocessor does not maintain floating-point operations.

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