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

The resistance of an electrical conductor, The resistance of an electrical ...

The resistance of an electrical conductor depends on 4 factors, these being:   a)  The length of the conductor   b)  The cross-sectional area of the conductor

Personal safety from power, Personal  safety Power supplies can be very...

Personal  safety Power supplies can be very dangerous. This is specifically true of high voltage circuits, but anything over 12 V must be treated as lethal potentially. A po

Digital storage oscilloscope , Q. Explain digital Storage Oscilloscope (DSO...

Q. Explain digital Storage Oscilloscope (DSO) with neat diagram, (b) Give the difference between analog and digital storage oscilloscope.   Principle of operation : The availa

Processing and establishing data in end to end layers, Q. Explain how prese...

Q. Explain how presentation layer helps in processing and establishing data in End to End layers. Ans: The purpose of presentation layer is to represent information to commu

Discuss the foreign exchange market equilibrium, Q. To answer the following...

Q. To answer the following question, please refer to the figure below. Concentrating only at the upper right quadrant, discuss the foreign exchange market equilibrium. Answer:

Sparking with electrical equipment, Sparking : In ordinary domestic situat...

Sparking : In ordinary domestic situations, small electrical sparks are usually not hazardous. In certain conditions which are frequently encountered in science labs, even the sma

Describe the term pure hardware delay, Question: (a) Describe the term...

Question: (a) Describe the term "Pure Hardware Delay" in microcontroller design. (b) Name the three types of subroutines which are placed at the interrupt location in ROM a

Gis benefits, GIS Benefits: Improving financial viability. Re...

GIS Benefits: Improving financial viability. Reduction of T&D losses. Improving customer satisfaction. Raising reliability of power supply. Improving qual

Aggregate technical and commercial loss, Aggregate Technical and Commercial...

Aggregate Technical and Commercial Loss It is unfortunate in that addition to T&D losses, there is also a loss in revenue because of non-realisation of billed demand which lea

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