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 do you mean by macro, What do you mean by Macro? MACRO : A seque...

What do you mean by Macro? MACRO : A sequence of instructions to that a name is assigned is termed as macro. Macros and subroutines are same. Macros are utilized for short se

Power Engineering, A three-phase transposed line is composed of one ACSR co...

A three-phase transposed line is composed of one ACSR conductor per phase with flat horizontal spacing of 11 meters as shown in Figure (a). The conductors have a diameter of 3.625

Find the effective noise temperature, Q. An antenna with an effective noise...

Q. An antenna with an effective noise temperature of 130 K couples through a waveguide that has a loss of 0.8 dB to a receiver. Find the effective noise temperature presented by th

How address and data lines are demultiplexed in 8085, How address and data ...

How address and data lines are demultiplexed in 8085? AD0-AD7 lines are multiplexed and the lower half of address A0-A7 is available only during T1  of the machine cycle. This

Digital electronics, design 4 bit binary coded decimal to excess 3

design 4 bit binary coded decimal to excess 3

Sketch the depletion mosfet drain characteristics, Q. Sketch the depletion ...

Q. Sketch the depletion MOSFET drain characteristics The depletion-type MOSFET has a structure similar to that of the enhancement-type MOSFET with one important difference: The

Common-collector amplifier, A common-collector (CC) amplifier is also known...

A common-collector (CC) amplifier is also known as an emitter follower (or a voltage follower) due to the fact that the output voltage "follows" the input by being approximately eq

Triac - power semiconductor devices , Triac  As the  name  suggests T...

Triac  As the  name  suggests TRIAC  is advice which  has three  electrodes and works  on AC.  The three terminals of triac are MTI ( Main Terminal ) MT2 ( Main  terminal ) an

Determine whether the diode in circuit, Determine whether the diode (consid...

Determine whether the diode (considered to be ideal) in the circuit of Figure (a) is conducting.

Simple zener voltage regulator, Consider a simple zener voltage regulator w...

Consider a simple zener voltage regulator with the circuit diagram shown in Figure (a). (a) For a small reverse resistance R Z S and V S - R S i out > V Z , show that v ou

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