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

OSCILLATORS, DESIGN A WIEN OSCILLATOR THAT OSCILLATE AT 25KHZ

DESIGN A WIEN OSCILLATOR THAT OSCILLATE AT 25KHZ

Society in engineering, Cite a specific example in which the engineer must ...

Cite a specific example in which the engineer must provide maximum efficiency for a given cost

Explain super scalar architecture, Explain super scalar architecture. ...

Explain super scalar architecture. The Pentium microprocessor is organized along with three execution units. Single is executes floating-point instructions, and another two (U

For the given circuit determine voltage, Q. For the circuit shown in Figure...

Q. For the circuit shown in Figure, determine v out (t).

Role of central and state governments, Role of Central and State Government...

Role of Central and State Governments The subsequent roles of Central and State Governments are envisaged in the Act: The Central Government will Notify rules

Help needed in degree project, i have to design a project title "Edge deter...

i have to design a project title "Edge determining techniques for Low quality images in different lighting conditions and we use matlab for images simulation by changing different

Biomedical question, Find the rms voltage of the given cardiac wave

Find the rms voltage of the given cardiac wave

7 segment design, how to design 7 segment design using DSCH2 ?

how to design 7 segment design using DSCH2 ?

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