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

What digits are represented by the signal, A signal stands for 0110 with po...

A signal stands for 0110 with positive logic in which low stands for 0 and high stands for 1. If negative logic (in which low stands for 1 and high stands for 0) is used, what digi

Determine voltage ratio for the circuit, Q. Determine v o /v i for the ci...

Q. Determine v o /v i for the circuit shown in Figure if the op amps are ideal.

Combination of uni-selectors and two motion selectors, Q Using a combinatio...

Q Using a combination of Uni-selectors and two motion selectors, draw a diagram of thousand line exchange and illustrate its working. Ans: The diagram for such an exchange i

Explain junction transistors (npn and pnp), Explain junction transistors (n...

Explain junction transistors (npn and pnp). Junction Transistor: This transistor consists of two p-n junctions combined in one crystal as demonstrated in figure below.

Emitter follwer, Ask questertion #Minimum 100 words accepted#

Ask questertion #Minimum 100 words accepted#

Find the transmitters unmodulated carrier power, At the transmitter in a st...

At the transmitter in a standard AM system, P f = 50 W. In the receiver (S 0 /N 0 ) AM = 250 when (S i /N i ) AM = 3000. Find the transmitter's unmodulated carrier power and t

Test, current and voltage

current and voltage

Semiconductor, what are the most 4 types of doping techinques in semiconduc...

what are the most 4 types of doping techinques in semiconductors

Speed control of three phase induction motors , Speed  Control of Three  ...

Speed  Control of Three  Phase Induction Motors Three  phase  induction motors are invariably used in the application where in speed in  required to be  constant  or adjustabl

Electronic devices and circuits, Determine the change in IC from 25ºC to 17...

Determine the change in IC from 25ºC to 175ºC for the transistor defined in this table for fixed-bias with RB = 240 k and = 100 due to the S(VBE) stability factor.

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