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

Off line ups system - power supplies , Off line UPS System Again the tw...

Off line UPS System Again the two  switches  are used in this  type of ups  as online  ups. The difference  is that  here  the main  static  switch  remains normally  ON and UP

Integrator with positive voltage on a noninverting input, Q. An integrator ...

Q. An integrator with positive voltage on a noninverting input is shown in Figure. Sketch v o for 60 ms after S has been opened.

Define johnson counters to make simpler combinational logic, Define Johnson...

Define Johnson Counters to Make Simpler Combinational Logic? The ring counter technique able to be efficiently utilized to implement synchronous sequential circuits. A main pr

What is polarisation, What is polarisation? Explain. While a dielectric...

What is polarisation? Explain. While a dielectric material is related an electric field the dipoles of the material find oriented in a certain direction under the effect of the

Give the significance of sim and rim instruction, Give the significance of ...

Give the significance of SIM and RIM instruction available in 8085. Instruction SIM: Set Interrupt Mask. This is a 1 byte instruction and can be used three dissimilar functio

Induction motor, A very widely used alternative form of synchronous motor i...

A very widely used alternative form of synchronous motor is the  ' indu c tion motor'. This has the advantage that it does not require an auxiliary motor to run the rotor up t

C program, write a c program for suggler message decoder

write a c program for suggler message decoder

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