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

Describe the time division switching, Q. Describe the time division switchi...

Q. Describe the time division switching? Ans: Space and Time Switching: Space Switches: Connections can be made between outgoing and incoming PCM highways by means of

Discuss the various types of memory devices, Discuss the various types of m...

Discuss the various types of memory devices that you are familiar with. All of the memory utilized as main store in a modern computer is implemented like semiconductors fabrica

Resistance temperature sensor, A Platinum resistance temperature sensor has...

A Platinum resistance temperature sensor has a resistance of 120 ohm at 0°C and forms one arm of a Wheatstone bridge. At this temperature the bridge is balanced with each of the ot

Saturation and cutoff in bipolar junction transistor, Saturation and Cutoff...

Saturation and Cutoff in bipolar junction transistor: Saturation : With both of the junctions forward-biased, a BJT is in saturation mode and makes easy high current condu

Nodal Analysis, sample problem and solutions with answer

sample problem and solutions with answer

Application of plc - stepper motor , Application of PLC a. A PLC  is us...

Application of PLC a. A PLC  is used to start  and stop  the motors  of a segmented conveyor beli. This  allows  only belt section carrying  a copper plate to move. b.In aut

Clipper and clamper circuit, Clipper Circuits: Clipper circuit have ab...

Clipper Circuits: Clipper circuit have ability to Clipper of portions of the input signals without distorting the remaining part of the alternating wave form. Clamper net

Electron, Electron congratulations

Electron congratulations

Digital Signal Processing, Can you do a survey paper on Wavelet and Subband...

Can you do a survey paper on Wavelet and Subband Coding? I need 10 pages and I will provide the references.

How power amplifiers are classified, a. Describe briefly with suitable diag...

a. Describe briefly with suitable diagrams, how power amplifiers are classified with reference to operating point? b. Get the maximum efficiency of class A direct coupled power

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