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

Determine the transfer function and driving-point impedance, Q. A filter is...

Q. A filter is a network employed to select one range of frequencies while rejecting all other frequencies. A basic building block often used in integrated-circuit filters is shown

State value of current flowing in the winding, The winding of an electromag...

The winding of an electromagnet has an inductance of 3H and a resistance of 15?. When it is connected to a 120 V d.c. supply, Determine: (a)  the steady state value of current f

Wcdma, what is that mean and explain

what is that mean and explain

Sommerfield’s free electron theory, Write down basic postulates of sommerfi...

Write down basic postulates of sommerfield’s free electron gas model. Show that the number of energy states per unit energy is given by g(E) = 4Rv/h 3 (2m) 3/2 E 1/2 .  What is

Rise time - power semiconductor devices , Rise  Time (t r ) During  ri...

Rise  Time (t r ) During  rise time voltage falls from 90% V a to 10%  where  V a where V a is the initial  anode  voltage. In terms  of current  time taken  by anode  curre

Calculate the reflection of wedge, The corners of wedge-shaped block are A(...

The corners of wedge-shaped block are A(0,0,2), B(0,0,3), C(0,2,3), D(0,2,2), E(-1,2,2) and F(-1,2,3) and the reflection plane goes the Y-axis at 450 between (-X) & (Z) axis. Calcu

Advantages and disadvantages of direct coupled coupling, Q. Mention the adv...

Q. Mention the advantages and disadvantages of direct coupled coupling?       Advantages:             1.Simple circuit due to minimum use of resistor             2.Low

Dtl and ttl logic circuits, Q. DTL AND TTL LOGIC CIRCUITs? Bipolar tran...

Q. DTL AND TTL LOGIC CIRCUITs? Bipolar transistorswere the first solid-state switching devices commonly used to implement digital logic circuits in the 1950s and 1960s. These c

N-type semiconductor, a)  Sketch the variation of electron concentration wi...

a)  Sketch the variation of electron concentration with temperature for i)  an n-type semiconductor doped with 1021  donors m-3 ii)  an intrinsic semiconductor.  b)  Expla

Explain position servo in a radar system, Q. Explain Position servo in a ra...

Q. Explain Position servo in a radar system? Figure depicts the essential elements of a position servo system. In a radar system, an electromagnetic pulse is radiated from an a

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