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

Vhdl, how to construct universal shift register using D-flipflop and mux??

how to construct universal shift register using D-flipflop and mux??

Dpr preparation, DPR PREPARATION: 1.  Asset Management 2.  System O...

DPR PREPARATION: 1.  Asset Management 2.  System Operations and Despatch 3.  Field Operations 4.  Customer Processes 5.  Corporate Processes The details covered

Automatic frequency control , Discuss the requirement for automatic gain co...

Discuss the requirement for automatic gain control in AM receiver and automatic frequency control in FM. How are these 'control' voltage formed and used?

Clipper, merits amd demerits of series and shunt clipper

merits amd demerits of series and shunt clipper

Show dc generator characteristics, Q. Show DC Generator Characteristics? ...

Q. Show DC Generator Characteristics? Figure shows schematic diagrams of field-circuit connections for dc machines without including commutating pole or compensating windings.

Explain the operation of n-channel fet, Q. Explain the operation of N-chann...

Q. Explain the operation of N-channel FET? Transistor is a linear semiconductor device that controls current with the application of a lower-power electrical signal. Transistor

Find the voltage drops across the resistors, Consider the network shown in ...

Consider the network shown in Figure (a). (a) Find the voltage drops across the resistors and mark them with their polarities on the circuit diagram. (b) Check whether the KV

Differential amplifier to eliminate the common-mode voltage, Q. Differentia...

Q. Differential amplifier to eliminate the common-mode voltage? The transducer in some cases may have a local ground that cannot be disconnected. In such a case, a separate gro

Chemical vapour deposition, Explain chemical vapour deposition method for t...

Explain chemical vapour deposition method for the preparation of nanomaterial and its properties

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