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

Output impedance, Now that you have the input and output impedances you can...

Now that you have the input and output impedances you can design the matching networks. I will require either the Smith Charts showing how you calculated the matching components or

Explain electrical contact materials, Explain electrical contact materials....

Explain electrical contact materials. Electrical contact materials: some elements, in their relatively pure forms as copper, nickel, molybdenum, palladium, silver, tungsten and

Define some applications of digital counters, Define some Applications of D...

Define some Applications of Digital Counters? Digital counters are extremely useful in many applications. They can be effortlessly found in digital clocks and parallel-to-seri

Define some illustrations of common control characters, Define some Illustr...

Define some Illustrations of Common Control Characters? Illustrations of common control characters include: Carriage return (ASCII code 0Dh), which positions the cu

Explain state-variable techniques, Q. Explain state-variable techniques? ...

Q. Explain state-variable techniques? The matrix formulations associated with state-variable techniques have largely replaced the block-diagram formulations. Computer software

Explain practical digital to analog converters, Explain Practical Digital t...

Explain Practical Digital to Analog Converters? In several DSP applications, we must reconstruct an analog signal after the digital processing stage. This is completed using a

Linear and IC applications, bias compensation techniques for ac and dc char...

bias compensation techniques for ac and dc characteristics

Ac, power factor improvement

power factor improvement

What is cascade, An arrangement of Windows so every window is neatly stacke...

An arrangement of Windows so every window is neatly stacked with only the title bar of every window is showing.

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