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

Determine collector - emitter voltage and base current, Q. A transistor is ...

Q. A transistor is connected in common emitter configuration collector supply voltage Vcc is 10 volts load resistance Rl is 800ohm,voltage drop across load resistance is 0.8v and c

Describe the working of binary comparator, Digital Systems 1. Describe ...

Digital Systems 1. Describe the working of Binary comparator (Magnitude comparator) a. Define Binary comparator b. Binary comparator working process with logical diagrams 2.

Determine the slip at maximum torque, A three-phase induction motor, operat...

A three-phase induction motor, operating at its rated voltage and frequency, develops a starting torque of 1.6 times the full-load torque and a maximum torque of 2 times the full-l

Core electron binding energies, Perform a Hartree-Fock geometry optimizatio...

Perform a Hartree-Fock geometry optimization calculation of butadiene using a minimal basis set. Repeat with the 6-311G(d,p) basis set, using the optimized minimal basis set geomet

Evaluate the diode current id, Question: (a) The piecewise linear appro...

Question: (a) The piecewise linear approximation given in Figure is assumed for the diode in the circuit shown in Figure. Evaluate the diode current ID. (b) The piecew

Microprocessors, Microprocessors: We have learnt 8085 family of microp...

Microprocessors: We have learnt 8085 family of microprocessors. Initially, we understand basic components of a computer, 8085 microprocessor architecture and assembly language

Nicol prism, how much and what to write it is of 30 marks

how much and what to write it is of 30 marks

Switching characteristics , Switching Characteristics The switching  c...

Switching Characteristics The switching  characteristics of power MOSFET the delay time and rise time are responsible to remove the  effect of internal capacitance of the devi

Determine the power flow diagram for a dc generator, a. Determine the power...

a. Determine the power flow diagram for a DC generator. b. A shunt wound DC generator delivers 496 A at 440 V to a load. The resistance of  the shunt field coil is 110? and that

Show basic construction of mosfet, Q. Show Basic Construction of MOSFET? ...

Q. Show Basic Construction of MOSFET? The basic construction of the n-channel depletion-type MOSFET is provided in Figure. A slab of p-type material is formed from a silicon

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