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

Bathub curve, what is an useful life time in bathtub curve?

what is an useful life time in bathtub curve?

Technical loss in electrical systems, Technical Loss in Electrical Systems ...

Technical Loss in Electrical Systems Technical loss is inherent in electrical systems, as all electrical devices have a few resistances and the flow of currents causes a power

Find the new gain for the inverting-amplifier circuit, Q. An op amp has a f...

Q. An op amp has a finite gain of only 50, but is otherwise ideal. For the inverting-amplifier circuit of Figure, if R 2 = 20 k, what value of R 1 would be needed to give a gain

Microprocessors, Microprocessors: We have learnt 8085 family of microp...

Microprocessors: We have learnt 8085 family of microprocessors. Initially, we understand basic components of a computer, 8085 microprocessor architecture and assembly language

Explain the meaning of ring counters, Explain the meaning of Ring Counters?...

Explain the meaning of Ring Counters? A ring counter is fundamentally a circulating shift register in which the output of the most significant stage is fed back to the input of

Techniques and resources in problem base learning, Techniques and resources...

Techniques and resources Different techniques and resources were used in different areas of the problem during the course of the project. The most important of them was th

Carrier modulation by digital signals, Q. Carrier Modulation by Digital Sig...

Q. Carrier Modulation by Digital Signals? Digitally modulated signals with low-pass spectral characteristics can be transmitted directly through baseband channels (having low-p

What do you mean by exponent, Q. What do you mean by Exponent? The expo...

Q. What do you mean by Exponent? The exponent field needs to represent both negative and positive exponents. To perform this, a bias is added to the actual exponent in order

Block diagram of proportional and integral controller, Q. Show Block diagra...

Q. Show Block diagram of proportional and integral controller? The block diagram of Figure illustrates a typical microprocessor system used to implement the digital PI controll

Show the procedure of octal to decimal conversion, Q. Show the procedure of...

Q. Show the procedure of Octal to Decimal Conversion? To convert from Octal to Decimal, multiply the value in every position by its Octal weight and add each value. Using the v

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