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

Name the elements related to capacitance, Elements related to capacitance ...

Elements related to capacitance a.  Electric field: Area that surrounds the electric charge or charges system where the enhancing and reducing of electric force exists.

Sui subtract immediate i instructions , SUI  Subtract Immediate I Instruct...

SUI  Subtract Immediate I Instructions The 8 bit  data  specified  in the  instruction  is directly  subtracted  from the  contents of  accumulator  and results  of operation

Determine the transfer function, Q. For the networks shown in Figure, deter...

Q. For the networks shown in Figure, determine the transfer function G(s) = V o (s)/V i (s).

Logic Gates, XOR gate BY using NAND gate Only

XOR gate BY using NAND gate Only

Find the bandwidth and the power content of modulated signal, The normalize...

The normalized signal xn(t) has a bandwidth of 10 kHz and its power content is 0.5 W, while the carrier Ac cos 2πfct has a power content of 200W. Find the bandwidth and the power c

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

Produce electrical power using solar cell - electrical power, 1. Suppose th...

1. Suppose the California government sets aside a square patch of land that is 10 kilometers on each side and plans to use this land to generate electrical power with wind turbines

The three-phase alternator, The Three-phase alternator In this case, t...

The Three-phase alternator In this case, three separate sets of coils are wound on the stator and connected to produce three separate outputs. Because of the physical displace

Case 2 a>b - program description, Case 2 ( A>B) Suppose XX = 05H ( stor...

Case 2 ( A>B) Suppose XX = 05H ( stored  in A ) And  YY = 02H ( stored  in B). Then carry  flag will  reset by CMP instruction, since  A> B in this  case JNC  will transfer the

Drive operating envelopes and induction machines, Solve using data from the...

Solve using data from the DC machine data sheet, using the "hot" resistance value for all calculations. Note that the value of K on the sheet is for rated (100%) field flux. Assum

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