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

Svd, svd calculation in matrix

svd calculation in matrix

Draw an electrical relay diagram, Draw an electrical relay diagram rung sho...

Draw an electrical relay diagram rung showing a N/O contact of CR1(coil) in series witha N/C contact of CR2(Coil), operating a lamp L1. A delay-on (TON) relay has a preset of 5.

Find the voltage drops across the resistors, Consider the network shown in ...

Consider the network shown in Figure (a). (a) Find the voltage drops across the resistors and mark them with their polarities on the circuit diagram. (b) Check whether the KV

Discuss all the five software interrupt instructions, Discuss all the five ...

Discuss all the five software interrupt instructions. The INTEL family microprocessor consist of software interrupts INT, INT0, INT3 and BOUND and IRET. Out of all these five

Binary division , Binary  Division Similar  to multiplication  divisi...

Binary  Division Similar  to multiplication  division can be seen  multiple  subtractions.  For example  if we have to divide 9 by 4  we can subtract 4 ,2,  times  until is is

Generation and control of electron beam, Illustration the basic working pri...

Illustration the basic working principle, process parameters, economics, safety precautions and applications of plasma Arc Machining process(PAM) Discuss Electron Beam Machining

Error in simulink, dear sir, when i am going to simulate my model in matlab...

dear sir, when i am going to simulate my model in matlab i am getting the following error : the derived input for the integrator is inf or nan at time xxxxx. try to reduce the step

Illustrate flat plate collectors, What is the use of basic earth-sun angles...

What is the use of basic earth-sun angles? Show by mean of diagram. Illustrate sun as source of energy with relevant data? Illustrate flat plate collectors. Describe liquid f

Successive-approximation analog to digital converter, Successive-approximat...

Successive-approximation analog to digital converter This converter, shown in Figure, also contains a D/A converter, but the binary counter is replaced by a successive-approxim

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