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

Immediate addressing , Immediate  Addressing In this  addressing mode...

Immediate  Addressing In this  addressing mode that 8/16  bit data  is specified  in the  instruction itself  as its  one of the  operands. Normally the instructions  using  a

Define electrical energy, Electrical energy If the power is measured in...

Electrical energy If the power is measured in watts and the time in seconds then the unit of energy is watt- seconds or Joules.

Show step-motor control system, Q. Show Step-motor control system? Figu...

Q. Show Step-motor control system? Figure illustrates a system in which the prime mover used in the disk-drive system is a step motor driven by pulse commands. In response to e

Junctions and diodes, An intrinsic semiconductor at room temperature has fr...

An intrinsic semiconductor at room temperature has free electrons

Compare the percent error of both meters, Q. Error speci?cations on a 10-A ...

Q. Error speci?cations on a 10-A digital ammeter are given as 0.07% of the reading, 0.05% of full scale, 0.005% of the reading per degree Celsius, and 0.002% of full scale per degr

Find out which of the two motors, Find out which of the two motors: Tw...

Find out which of the two motors: Two three-phase induction motors while connected across a 400 V, 50 Hz supply are running at 1440 and 940 RPM respectively. Find out which of

Solid mensuration, reflections, journey about the subject solid mensuration...

reflections, journey about the subject solid mensuration

Temperature controller, This assignment concerns the planning of a software...

This assignment concerns the planning of a software development. You are required to plan the software development for a typical microprocessor based, 4-channel temperature control

Dc motors, i dont understand why equalizer connection is not used in wave w...

i dont understand why equalizer connection is not used in wave windings?

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