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

Mechanism of metal removal in electrochemical machining, What is the proces...

What is the process of metal removal in electrochemical machining? What are the basic functions of electrolyte in ECM? Illustrate the following key terms in electrochemical mach

Working of simple air evaporative, With the help of neat sketch T-S diagram...

With the help of neat sketch T-S diagram illustrate the working of simple air evaporative cooling system used in air craft. With the help of neat diagram and T-S diagram iillust

Realize various dividers in the schematic representation, Q. Counters are u...

Q. Counters are used to realize various dividers in the schematic representation of the digital clock shown in Figure. The blocks labeled "logic array" are logic gate combinations

Explain generating mode of rotating machines, Q. Explain Generating mode of...

Q. Explain Generating mode of rotating machines? The generating mode has mechanical power input and electric power output. The torque T applied externally to the shaft drives t

Sid input - serial input output ports , SID  Input Serial input data  ...

SID  Input Serial input data  single  bit can be  accepted through this  pin using RIM  command  discussed in details in chapter8.

Each cells is connected 4 rows, 20 cells with emf 1.45V and internal resist...

20 cells with emf 1.45V and internal resistance 0.5Ω for each cells is linked 4 rows which every rows having of 5 cells in series. Load resistance 15Ω is connected to the battery.

Binary coded decimal to decimal conversions, Binary Coded Decimal to Decima...

Binary Coded Decimal to Decimal Conversions • Step1. Break up the Binary Coded Decimal number into 4 bit binary number, starting from the least significant binary bit. • Step2

Explain cold rolled grain oriented steel, Discuss the properties and uses o...

Discuss the properties and uses of Cold rolled grain oriented steel. Cold rolled grain oriented steel:  Grain orientation of silicon steel is acquired by a special technique

Determine the 60-hz resistance of line, Q A handbook lists the 60-Hz resist...

Q A handbook lists the 60-Hz resistance at 50°C of a 900-kcmil aluminumconductor as 0.1185/mile. If four such conductors are used in parallel to form a line, determine the 60-Hz r

Newtons law of gravitation, Particles of mass M and m separated in space by...

Particles of mass M and m separated in space by a distance R exert a mutually attractive gravitational force F on one another given by where G is the universal gravitationa

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