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

Show output characteristic of common emitter configuration, Q. Show output ...

Q. Show output Characteristic Of Common Emitter Configuration? Output characteristics: This family of curves may be divided into three regions just as was done for common base

Common-emitter configuration, Q. Common-Emitter Configuration? The emit...

Q. Common-Emitter Configuration? The emitter part of a circuit being common to both the input and the output portions, Figure (a) illustrates a common-emitter (CE) BJT amplifie

Discuss how wavelet transform is suitable, Q. Discuss how Wavelet Transform...

Q. Discuss how Wavelet Transform is suitable for each application below. You can give examples  if you need to. a) multi-resolution analysis of signals and images b) space-fr

Determine the i-v characteristic of the network, Determine the i-v characte...

Determine the i-v characteristic of the network shown in Figure by the use of breakpoint analysis.

Speed control using phase controlled converters , Speed Control Using Phase...

Speed Control Using Phase Controlled Converters Phase controlled  converters converts a constant ac voltage  into  variable  controlled  dc voltage. This  variable  dc voltage

Explain rs422a standard, Explain RS422A standard. RS422A: 1.  Date...

Explain RS422A standard. RS422A: 1.  Date Rate: 10 Mbits per second 2.  Driving capability up to 4000ft and 10 receivers 3.  This is Differential standard that is- a

Explain about adaptive control system, Q. Explain about Adaptive Control Sy...

Q. Explain about Adaptive Control System? Another type of control system that makes use of the computer is known as adaptive control, which is functionally represented in Figur

What is session layer, Q. What is Session Layer? Session layer is used ...

Q. What is Session Layer? Session layer is used to allow users to identify themselves when waiting access to the network. This is concerned with setting up and sustaining an op

RC phase shift oscillator, For the RC phase-shift oscillator if c=1pF and R...

For the RC phase-shift oscillator if c=1pF and R=10K determine the value of Rf

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