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

Expression for the force exerted on the iron plunger, Solenoids find applic...

Solenoids find application in a variety of electrically controlled valves. The magnetic structure shown in Figure is a simplified representation of a solenoid in which the flux in

Explain pnp transistor circuit, Explain pnp transistor circuit . pnp tr...

Explain pnp transistor circuit . pnp transistor: A transistor consist of  three terminals. In this pnp transistor there is two blocks of p- type semiconductors that are separa

Example of high resistivity material, Example of high resistivity material ...

Example of high resistivity material is (A) Nichrome              (B) Silver (C) Gold                      (D) Copper Ans: Nichrome is example of high resistivity

Short circuits effect on cables, When you have a three phase short circuit ...

When you have a three phase short circuit of power cables laid in a trefoil formation they repel apart very dramatically. Why is this and what is happening?

Show application of bistable multivibrator, Q. Show Application of bistable...

Q. Show Application of bistable multivibrator? · Bistable multivibrator is used as counters and storing of binary information. · It is used as frequency divider in timing ci

Silicon Photonics, How does a Mach-Zehnder Modulator work in Silicon?

How does a Mach-Zehnder Modulator work in Silicon?

Step up chopper - power supplies , Step Up Chopper In this  chopper av...

Step Up Chopper In this  chopper average output  voltage  is greater than  input  voltage. The circuit  different  mode  of operation and  current  waveforms are show. When

Meters and measurements, The subject of electrical measurements is such a l...

The subject of electrical measurements is such a large one that entire books have been written on the topic. Only a few basic principles will be introduced here. Practical measurem

Explain from the drain characteristics, Q. Explain from the drain character...

Q. Explain from the drain characteristics that a JFET has  infinite resistance? When V GS = 0v when a positive voltage Vds has been applied across the channel and the gate

Performance of digital modulation schemes, Hello, Please how do I compare p...

Hello, Please how do I compare performance of a digital modulation scheme with matlab?

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