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

Chopper configuration - power supplies , Chopper Configuration Choppe...

Chopper Configuration Chopper are classified  in five  different classes according  to their operating capability in particular quadrant. The  current  directions and voltage

Determine the resistivity of the wire, The resistance of 1.5 km of wire of ...

The resistance of 1.5 km of wire of cross-sectional area 0.17 mm 2 is 150Ω. Determine the resistivity of the wire.

power sector economics & planning, 1.  The rejection criteria of an invest...

1.  The rejection criteria of an investment project, as evaluated from the NPV method is that NPV should be equal to zero. 2.  Technical feasibility is the only criteria to dete

Calculate the bandwidth and input-output resistance, Using the LM741operati...

Using the LM741operational amplifier build a voltage amplifier with the voltage gain of  |A V | = 500 v/v ± = 20%. Measure all necessary parameters of the amplifier (as per deliver

project, I want to make project plz help me n gove me idea about actually ...

I want to make project plz help me n gove me idea about actually its my first year in electrical engineering thts why Ineed help hpfully you will reply soon

Find temperature coefficient of resistance in semiconductors, Semi-conducto...

Semi-conductors have temperature coefficient of resistance.  (A) Negative                                    (B) Positive (C) Both positive and negative        (D) none o

Emf, what is emf

what is emf

With a block diagram explain fiber optic communication, With a block diagra...

With a block diagram explain fiber optic communication system Ans: The block diagram of a fiber optic communication system is display below: The input signal is giv

Calculate the new rotor current frequency, Induction motors are often brake...

Induction motors are often braked rapidly by a technique known as plugging, which is the reversal of the phase sequence of the voltage supplying the motor. Assume that a motor with

Technical losses in power systems, Technical Losses in Power Systems T...

Technical Losses in Power Systems The technical losses in power systems occur because of energy dissipated in the conductors and equipment used for transmission, transformat

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