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

Matlab magnetic field, i have an assignment related to magnetic field i ha...

i have an assignment related to magnetic field i have attached the( MRI assignment sheet)[1] please read it carefully in the assignment 2 methods to get the results - one by

Parallel - flash converter, Q. Parallel - flash converter? Parallel / ...

Q. Parallel - flash converter? Parallel / flash converter. Also known as parallel A/D converter, this circuit is the simplest to understand. It's formed of a series of co

Define the dma controller interface, Define the DMA controller interface. ...

Define the DMA controller interface. A DMA controller interfaces along with a few peripherals which may request DMA. The controller chooses the priority of simultaneous DMA req

Determine harmonic factor hf of the input current, Q. Consider a full-wave ...

Q. Consider a full-wave single-phase bridge recti?er circuit with dc motor load, as shown in Figure (a). Let the transformer turns ratio be unity. Let the load be such that the

Engineer, Transmission Through a LiNb0 3 Plate Examine the transmission of...

Transmission Through a LiNb0 3 Plate Examine the transmission of an unpolarized He-Ne laser beam (?o= 633 nm) normally incident on a LiNb0 3 plate (ne = 2.29, no = 2.20) of thickn

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.

Semiconductors, Charge density In a semiconductor

Charge density In a semiconductor

Determine the location and the value of the point charge, Q. The electric f...

Q. The electric field intensity due to a point charge in free space is given to be Determine the location and the value of the point charge.

Apparatus for BCD to excess 3, Apparatus for BCD to excess 3 convertor usin...

Apparatus for BCD to excess 3 convertor using nand and nor gates

Obtain the z-parameters for the circuit, Q. (a) Consider the capacitor -...

Q. (a) Consider the capacitor - input filter circuit of Figure and obtain the z-parameters for the circuit. (b) Determine the transfer function V 2 /V 1 when I 2 is zero.

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