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

Bipolar junction transistor, Bipolar junction transistor: Transistors ...

Bipolar junction transistor: Transistors are so named as they conduct via using both majority and minority carriers. The bipolar junction transistor that is abbreviated as BJT

How many interrupts does 8085 have, How many interrupts does 8085 have, men...

How many interrupts does 8085 have, mention them The 8085 has 5 interrupt signals; they are INTR, RST7.5, RST6.5, RST5.5 and TRAP

Find the core radius necessary for a single mode operation, Find the core r...

Find the core radius necessary for a single mode operation at 1320nm of a step index fibre with n 1 =1.48 and n 2 =1.478. What are the N.A and maximum acceptance angle for this fib

Find the forced component of the current, Q. Consider an RC parallel circui...

Q. Consider an RC parallel circuit excited by (a) i(t) = 20e -2t A, and (b) i(t) = 20 A. Find the forced component of the current through the capacitor for R = 2  and C = 2F.

Differentiate thermoplastic & thermosetting plastic material, Classify plas...

Classify plastic materials into two categories describe their important properties and give two examples of each. Plastic materials can be categorized in thermoplastic and ther

Digital control system, Please suggest recent application of DCS WHICH I CA...

Please suggest recent application of DCS WHICH I CAN USE AS A TOPIC OF MY Ph.D.

Framework for indicators in electricity sector, Framework for Indicators in...

Framework for Indicators in Electricity Sector A framework has been developed and a set of core indicators for electricity Sector has been proposed. In the first example, mapp

Calculate the ratio v/i for an ideal diode, Q. Assuming the diode to obey I...

Q. Assuming the diode to obey I = IS (e V/0.026 -1), calculate the ratio V/I for an ideal diode with I S = 10 -13 A for the applied voltages of -2,-0.5, 0.3, 0.5, 0.7, 1.0, and

Complier -high level language , Complier-High Level language It al...

Complier-High Level language It also  translates the  whole  high  level  program  into object  program if it does not  have any  syntax error. The disadvantage of the  in

Fraction of the total cross section - interaction processes, Determine and ...

Determine and plot for 5 keV to 100 MeV the fraction of the total cross section due to each of the four interaction processes for      (a) hydrogen,      (b) nitrogen,

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