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

Frequency Variation, Frequency variation in simple transmitters can be redu...

Frequency variation in simple transmitters can be reduced by adding a _______ stage.

Cpi compare immediate instruction , CPI Compare Immediate Instruction ...

CPI Compare Immediate Instruction The 8 bit  data  specified  in the  instruction is  compared with the  contents of the accumulator. The comparison  is done by  subtracting

Obtain the complete solution for the current, For the circuit of Figure, ob...

For the circuit of Figure, obtain the complete solution for the current i L (t) through the 5-H inductor and the voltage v x (t) across the 6- resistor.

Illustrate power semiconductor devices, Q. Illustrate Power Semiconductor D...

Q. Illustrate Power Semiconductor Devices? Since the advent of the first thyristor or silicon-controlled rectifier (SCR) in 1957, tremendous advances have been made in power se

Calculation of AT&C loss, how to make a matlab program for calculation of A...

how to make a matlab program for calculation of AT&C loss for perticular area

Its use in civil engineering, applications of electronics device (bjt,mosfe...

applications of electronics device (bjt,mosfets) in civil engineering

Write explanatory notes on 8284 clock generator, Write explanatory notes on...

Write explanatory notes on 8284 Clock generator. The 8284 is an ancillary element to the microprocessors. Without this clock generator, a few additional circuits are needed to

Emitter follwer, Ask questertion #Minimum 100 words accepted#

Ask questertion #Minimum 100 words accepted#

Cmos processes, CMOS processes: The low-performance "lateral" bipolar ...

CMOS processes: The low-performance "lateral" bipolar transistors occasionally employed in CMOS processes are sometimes designed symmetrically, i.e., with no distinction betwe

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