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

Show how a 16-to-1 multiplexer can be obtained, Q. Using two 8-to-1multiple...

Q. Using two 8-to-1multiplexers and one 2-to-1multiplexer, show how a 16-to-1 multiplexer can be obtained in the form of a block diagram.

What ratio is needed for the cable, Q. If b and a are the radii of the oute...

Q. If b and a are the radii of the outer and inner conductors, respectively, of a coaxial cable using a polyethylene dielectric (ε r = 2.26), what ratio b/a is needed for the cabl

Determine the open-circuit output voltage, Q. Determine the open-circuit ou...

Q. Determine the open-circuit output voltage v o of the system shown in Figure as a function of the input voltage v i .

Digital frequency metre, what is digital frequency metre?working principle ...

what is digital frequency metre?working principle its operation and types application,advantages ,disadvantages

Impedance / DUTT, 3) The impedance for a 120 km, 230-kV line is given as j ...

3) The impedance for a 120 km, 230-kV line is given as j 0.9 ohm/km and j 0.6 ohm/km for self and mutual terms respectively; resistance is neglected. The mho characteristic for the

Explain transfer of risk, Q. Explain Transfer of Risk? In case of this ...

Q. Explain Transfer of Risk? In case of this method, risk is transferred to some other person or organization. In other words, under this method, a person who is subject to ris

Use a 4-to-1 multiplexer to simulate nand logic function, Q. Use a 4-to-1mu...

Q. Use a 4-to-1multiplexer to simulate the following: (a) NAND logic function. (b) EXCLUSIVE-OR logic function. (c) Σ m (1, 2, 4).

Active-mode pnp transistors in circuits, Active-mode PNP transistors in cir...

Active-mode PNP transistors in circuits: In the figure, the arrows showing current point in the direction of conventional current - the flow of electrons is in the opposite di

Quality Tools for Improvement, Quality Tools for Improvement The envir...

Quality Tools for Improvement The environment of the business of power sector has been modified recently largely because of partial deregulation of this sector. The required h

MATLAB, Future scope on MATLAB in India

Future scope on MATLAB in India

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