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

Role of a bus arbiter in a multiprocessor configuration, Discuss the role o...

Discuss the role of a bus arbiter in a multiprocessor configuration. Bus arbiter: It functions to resolve priority among bus masters and permits only one device at a time to

Zero flag - sub subtract instruction , Zero Flag Since results  is n...

Zero Flag Since results  is non  zero in this  example zero  flag is reset.

Static v- i characteristics - power semiconductor devices, V- I Characteris...

V- I Characteristics The operation of the  diac can be explained by imagining it as two diodes connected  in series. When  applied voltage in either polarity is small ( less t

Ac resistance and dc resistance, Background Information Electrical mach...

Background Information Electrical machines usually consist of copper windings on steel cores, and their AC resistance is greater than their DC resistance. The power loss has

Determine the voltage across the capacitor, (a) Let a unit impulse of curre...

(a) Let a unit impulse of current i(t) = δ(t) be applied to a parallel combination of R = 3 and C = 1/2 F. Determine the voltage vC(t) across the capacitor. (b) Repeat (a) for

How typical dma controller can be interfaced to 8086/8085, Show how a typic...

Show how a typical DMA controller can be interfaced to an 8086/8085 based maximum mode system. For 8088 in maximum mode: The RQ/GT1 and RQ/GT0 pins are utilized to issue DMA

Power spectral density, Power Spectral Density: To introduce the P...

Power Spectral Density: To introduce the Power Spectral Density (PSD) of a random signal. To study classical methods for PSD estimation. To investigate model-based

Explain the operation of the counter, Q. Figure shows the mod-8 counter whi...

Q. Figure shows the mod-8 counter which counts from 010 to 710 before resetting. Explain the operation of the counter and sketch the timing diagram.

What do you understand by bezier surface, What do you understand by Bezier ...

What do you understand by Bezier surface ? Discuss Determine the equivalent bicubic formulation of a closed and open cubic B-spine surface. a) What do you understand by solid

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