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

Electronic devices technology and circuits, Please can you explain the oper...

Please can you explain the operation of a transistor in a Common Emitter Class A audio Amplifier?

Ac voltage controllers, Q. Explain AC voltage controllers? Common appli...

Q. Explain AC voltage controllers? Common applications for these controllers are found in fan, pump, and crane drives. Figure shows three-phase symmetrical ac voltage-controlle

Clippers, what is shunt clipper?

what is shunt clipper?

Choose compensating components for the circuit, Q. Figure gives the frequen...

Q. Figure gives the frequency-response graphs for a 709 op amp. Choose compensating components for the circuit to have a gain of 100 and a frequency response of up to 100 kHz.

Passive filters, Passive filters: Passive implementations of linear fi...

Passive filters: Passive implementations of linear filters are based upon combinations of inductors (L), resistors (R), and capacitors (C). These sorts are collectively termed

Microcontroller, What are usue and all the details of 8051 microcontroller ...

What are usue and all the details of 8051 microcontroller with its block diagram pin diagram and all other details

Multiplexed address data bus - pins and signals , Multiplexed Address/ Data...

Multiplexed Address/ Data Bus Pins AD 7 - AD) are used for multiplexed address data bus. This bus is bidirectional  input output  and  serves two  purpose. Initially the bus

Electromagnetic torque , Electromagnetic torque  The torque is given...

Electromagnetic torque  The torque is given by the force on the armature winding multiplied by its radius. Force on a conductor in magnetic field B is:  F=B.I.L so, T=B

Find a state-variable formulation, Consider a system described by the coupl...

Consider a system described by the coupled difference equation y(k + 2) - ν(k) = 0 ν(k + 1) + y(k + 1) = u(k) where u(k) is the system input. (a) Find a state-variable

Illustrate application specific instruction set processor, Illustrate about...

Illustrate about the term application specific instruction set processor. Application Specific Instruction-Set Processor (ASIP): a. Microcontroller: as Intel, Hitachi, Motor

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