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 atomic weight of an atom, Atomic weight of an atom is (A...

Atomic weight of an atom is (A) Sum of the number of protons and neutrons. (B) Sum of the number of protons and electrons. (C) Sum of the number of electrons and n

Digital electronics, Design a logic circuit when to provide an output when ...

Design a logic circuit when to provide an output when any two or three of four switches are closed.

What will the slipring voltage be in this case, A four-pole, three-phase, w...

A four-pole, three-phase, wound-rotor induction machine is to be used as a variable-frequency supply. The frequency of the supply connected to the stator is 60 Hz. (a) Let the r

Clc filter, CLC or π Filter The above diagram displays CLC or π ty...

CLC or π Filter The above diagram displays CLC or π type filter, which mainly contains a capacitor filter, followed through LC section. This filter offers a quite smooth o

Show advantages and disadvantages of a r-c couple amplifier, Q. What are th...

Q. What are the advantages and disadvantages of a R-C coupled amplifier. Advantages · It has excellent frequency response. The gain is constant over the audio frequency ra

Simulate the circuit using digital simulation techniques, You are the new c...

You are the new chief PCB designer for a small company who are about to become heavily involved in the design and realisation of digital timing products. Your management wants to p

Armature winding, what is use of dummy coil in DC m/c????

what is use of dummy coil in DC m/c????

Electrical machine, Explain the principle of induction applied in electrica...

Explain the principle of induction applied in electrical machine

Dc motor - motor control , DC Motor The motor  which  require dc  supp...

DC Motor The motor  which  require dc  supply to drive them are called DC motors DC motor  consist  two types  of windings. a. Fields Winding b. Armature Winding

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