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

Equipment parameter data, Equipment parameter data: The schematic diag...

Equipment parameter data: The schematic diagrams for existing substations have to be prepared along with information of power transformer rating and numbers, impedance values,

Electronic photo flash, Q. Electronic Photo Flash? A simplified schemat...

Q. Electronic Photo Flash? A simplified schematic diagram of the electric circuit of an electronic photo flash typically used on cameras is shown in Figure 7.7.1. By passing a

Electronics, why inductive load is use in electronics circuit?

why inductive load is use in electronics circuit?

Explain the power transmission lines, Explain the Power Transmission Lines ...

Explain the Power Transmission Lines Transmission and distribution of electric power is accomplished by using overhead lines or underground cables. Overhead lines are normally

Electronics, Figure 1(a) shows a simple one-stage MOSFET amplifier. The inp...

Figure 1(a) shows a simple one-stage MOSFET amplifier. The input-output relationship is graphed in Figure 1(b), where the solid curve indicates operation in the saturated region an

What is the purpose of carry flag and zero flag, What is the purpose of car...

What is the purpose of carry (c) flag and zero (z) flag? Carry flag conatins the carry after addition or borrow after subtraction. This carry flag also shows error conditions,

What is schokleys equation, Q. What is Schokleys Equation. Find out a relat...

Q. What is Schokleys Equation. Find out a relation between Vgs and Ids? Schokleys Equation is used for defining the relation between the Gate source voltage and the Drain curre

Describe the basic types of number systems, Q. Describe the basic types of ...

Q. Describe the basic types of Number Systems? Probably the largest stumbling block most beginning programmers encounter when attempting to learn assembly language is the commo

Superposition theorem, what is the disadvantages of superposition theorem?

what is the disadvantages of superposition theorem?

Clipper, application and demerits

application and demerits

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