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

Calculate the supply line current, A balanced star-connected load is connec...

A balanced star-connected load is connected across a three phase 450V 50 Hz AC supply. Each load element has an impedance of 5+j12 Ω. Calculate: (i)  The power factor of the

Activities to preparing long-term plans, Activities to Preparing Long-term ...

Activities to Preparing Long-term Plans 1. Data collection regarding existing loads, forecast of expected loads, operating conditions, and etc. from Grid substation up to cons

Drift related to the instruments, If the instruments has no drift it is per...

If the instruments has no drift it is perfectly reproducible. No drift means that with a given input the measured values do not vary with time. Drift may be classified into thre

Orthogonal frequency division multiplexing, CURRENTLY, orthogonal frequency...

CURRENTLY, orthogonal frequency division multiplexing (OFDM) is emerging as the preferred modulation technique in modern high data rate broadband wireless mobile communication syst

Explain about adaptive control system, Q. Explain about Adaptive Control Sy...

Q. Explain about Adaptive Control System? Another type of control system that makes use of the computer is known as adaptive control, which is functionally represented in Figur

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

what are the most 4 types of doping techinques in semiconductors

Magnets, B-H curve of SM2CO17

B-H curve of SM2CO17

Inductor, assignment for inductor

assignment for inductor

Digital control system, a digital computer controlled rolling mill regulato...

a digital computer controlled rolling mill regulator system..

Xthl exchange top of the stack with hl instruction , XTHL Exchange top of t...

XTHL Exchange top of the stack with HL Instruction The contents  of top  two location of the  stack are exchanged with the  contents of HL register pair. The contents  of reg

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