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

Superposition Theorem, Help using superpositions find voltage across all re...

Help using superpositions find voltage across all resistor

Compute the efficiency of the autotransformer, The single-phase, 50-kVA, 24...

The single-phase, 50-kVA, 2400:240-V, 60-Hz, two-winding distribution transformer is connected as a step-up autotransformer, as shown in Figure. Assume that the 240-V winding is pr

Variable capacitors, how can I simulate air variable capacitors in cst simu...

how can I simulate air variable capacitors in cst simulator?

Partial derivatives - transistor hybrid model, Partial derivatives - Transi...

Partial derivatives - Transistor hybrid model: The partial derivatives are taken by keeping the collector voltage or base current constant as pointed out by the subscript atta

Matlab ? uniform quantization, simulate a uniform quantizer that takes as a...

simulate a uniform quantizer that takes as an input a vector of numbers and returns as an output the quantized vector. 1-Generate a random input vector of 10000 samples randomly in

Forecast the retail price of industrial electricity, Your assignment is to ...

Your assignment is to write a one page paper answering the question posed below. One page is the absolute limit. (You must attach a technical appendix showing computer output for

Discuss important properties and uses of ceramics, Discuss important proper...

Discuss important properties and uses of Ceramics. Ceramics - These are materials made by high temperature firing treatment of natural clay and specific inorganic matters. The

Explain magnetic property of ferromagnetic materials, The critical temperat...

The critical temperature above which the ferromagnetic materials lose their magnetic property is known as (A) Hysteresis.                                   (B) Curie point.

Show the use of hexadecimal, Hexadecimal is of use in IT because (1) It...

Hexadecimal is of use in IT because (1) It is a compact system (e.g. only 3 digits represent the number 986) (2) As 16 are a power of 2 it turns out to be quite easy to conv

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