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

V-i characteristics - power semiconductor devices, V- I Characteristics ...

V- I Characteristics When the peak  value of  applied  voltage is less than the break over   voltage  of triac  and no signal  is applied to the triac  it will block  both  pos

Ac resistance and dc resistance, Background Information Electrical mach...

Background Information Electrical machines usually consist of copper windings on steel cores, and their AC resistance is greater than their DC resistance. The power loss has

Draw and explain diode clipping circuit, Q. Draw and explain diode clipping...

Q. Draw and explain diode clipping circuit ? A diode clipping circuit can be used to limit the voltage swing of a signal. Clipper circuits are used to clip a portion of the w

Discuss electrical properties of insulating materials, Discuss electrical p...

Discuss electrical properties of insulating materials. Electrical properties of an insulating material are As Follows: Insulation resistance - It is the property, through

Form factor, Significance of form factor,why we decide the power handing ca...

Significance of form factor,why we decide the power handing capacity in transmission with the help of form factor?

Duty cycle of the system, The report should contain all of the information ...

The report should contain all of the information detailed below together with your analysis of the circuit and any conclusions. The report should contain the code for your simulati

Name 5 different addressing modes, The five addressing modes are given belo...

The five addressing modes are given below: Immediate, Register, Direct, Implied addressing modes           Register indirect,

How time slot interchange, Q. How time slot interchange switch works in tim...

Q. How time slot interchange switch works in time multiplexed time switching, Elucidate using schematic. Ans: Switches for which inlets and outlets are trunks that carry tim

Customer indexing, Customer Indexing: Customer indexing (CI) is a meth...

Customer Indexing: Customer indexing (CI) is a method for enumerating the total number of consumers in a utility and tagging them to their respective poles, transformers and f

Find a state-variable formulation, Consider a system described by the coupl...

Consider a system described by the coupled difference equation y(k + 2) - ν(k) = 0 ν(k + 1) + y(k + 1) = u(k) where u(k) is the system input. (a) Find a state-variable

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