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

What are the types of write operations used in 8253, What are the different...

What are the different types of write operations used in 8253? There are two types of write operations in 8253 (1) Writing a control word register (2) Writing a count val

What are the basic operations of mosfet, Q. What are the basic operations ...

Q. What are the basic operations of  MOSFET? The gate to source voltage is set to zero volts by the direct connection from one terminal to the other,and a voltage Vds is applie

Impurities in semiconductors, Impurities in Semiconductors Can be a...

Impurities in Semiconductors Can be added in accurately controlled amounts. Can modify the electronic and optical properties. Used to change conductivity over wide ra

Define characteristics of discrete time systems - linear, Define Characteri...

Define Characteristics of Discrete Time Systems - Linear? A discrete-time system is said to be linear if it obeys the principles of superposition. That is, the response of a li

Explain conduct insulation resistance test, Explain conduct insulation resi...

Explain conduct insulation resistance test on 100 VA inverter used for mobile and Laptop charging sockets? Ans: The insulation resistance of the inverter shall be calculated w

What do you mean by addressing and numbering, Q. What do you mean by addres...

Q. What do you mean by addressing and numbering? Numbering and Addressing: In data and telephone networks, end equipment are more often single units than multiple devices uni

Digital signal processing, please, how do i design a linear phase stable re...

please, how do i design a linear phase stable recursive digital filter

Stator voltage control methods - motor control , Stator Voltage Control Met...

Stator Voltage Control Methods By  controlling  the applied voltage  the speed  of an  induction motor  can be  controlled. Since  the output  torque of 3-? induction motor  i

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