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

3-phase 3 wire meter, 3-Phase 3 Wire Meter A 3-phase 3 wire meter has ...

3-Phase 3 Wire Meter A 3-phase 3 wire meter has 2 elements of each category on the other hand of 3 elements as in the case of 3-phase 4 wire meter. The primary principle of op

Calculate efficiency to load at unity power factor, Q. A 300-kVA transforme...

Q. A 300-kVA transformer has a core loss of 1.5 kW and a full-load copper loss of 4.5 kW. (a) Calculate its efficiency corresponding to 25, 50, 75, 100, and 125% loads at unity

What is peripheral component interconnect, What is a PCI bus? Periphera...

What is a PCI bus? Peripheral Component Interconnect: PCI bus was developed through Intel and introduced in 1993. This is geared specifically to fifth- and sixth-generation sys

Factors that influence choice of carrier frequency, 1. Why must a modem be ...

1. Why must a modem be used to transmit binary data through a PSTN? (1) Use sketches and additional text to describe the following modulation methods. (a) Amplitude shift key

Obtain the current by means of mesh-current analysis, By means of mesh-curr...

By means of mesh-current analysis, obtain the current in the 10-V source and the voltage across the 10- resistor in the circuit of Example.

Describe pulse dialling, Q. Describe Pulse dialling? Pulse dialling: ...

Q. Describe Pulse dialling? Pulse dialling: 1.  Generated through make and break contact. 2.  DC Current pulse is generated. 3.  Each number is separated by a short

Electronic, how a combination clipper works?

how a combination clipper works?

#t voice controlled mobile base, The aim of this project is to design, co...

The aim of this project is to design, construct and build a motorised base driven by two small dc motors. The motor drives are two H-bridges. The switching devices in these bridges

Thevenins theorem, How to solve questions on thevenin theorem

How to solve questions on thevenin theorem

Illustrate electric potential and voltage, Q. Illustrate Electric Potential...

Q. Illustrate Electric Potential and Voltage? When electrical forces act on a particle, it will possess potential energy. In order to describe the potential energy that a parti

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