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

Determine the speed of the motor, Q. A 10-kW, 250-V dc shunt generator, hav...

Q. A 10-kW, 250-V dc shunt generator, having an armature resistance of 0.1and a field resistance of 250 , delivers full load at rated voltage and 800 r/min. The machine is now ru

Explain the term assembler directives, Explain the term assembler directive...

Explain the term assembler directives. An assembler directive is a statement to provide direction to the assembler to execute the task of assembly process. These assembler dire

Jfet, JFET The JFET (junction gate field-effect transistor) is a ...

JFET The JFET (junction gate field-effect transistor) is a long channel of semiconductor material, doped to consist of abundance of positive charge carriers (p-type), or

Ani immediate with accumulator instruction , ANI AND Immediate  with Accum...

ANI AND Immediate  with Accumulator Instruction 8 bit  data specified  in the  instruction is logically  AND with the  contents  of the  accumulator. The result is stored  in

Describe in brief how email system works, Describe in brief how email syste...

Describe in brief how email system works Following is a simple description of how email system works: -  Sender composes a message (and attaches a file if required) and send

Zener diodes, At what value of electric field at a junction does zener brea...

At what value of electric field at a junction does zener breakdown takes place

Knowledge of science and engineering fundamentals, Knowledge of science and...

Knowledge of science and engineering fundamentals Knowledge of basic science and engineering fundamentals is necessary for engineers to develop solution to any complex problem

Non inverting summing amplifier, Q. In the non inverting summing amplifier ...

Q. In the non inverting summing amplifier of Figure, let R d = 1k and M = 6. Find R f so that v =

Network topology, LAN topologies: Network topology is a physical schematic...

LAN topologies: Network topology is a physical schematic that demonstrates interconnection of the many users. There are four fundamental topologies as under: (i) Direct Connect

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