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

Prepaid meters, Prepaid Meters Prepaid metering is a system whereby co...

Prepaid Meters Prepaid metering is a system whereby consumers purchase electricity by a smart card. The amount paid together along with other information is encoded in the sma

Define memory for a digital computer, Q. Define Memory For a digital comput...

Q. Define Memory For a digital computer? For a digital computer which stores both programs and data, memory can be divided into three types: random-access memory, mass storage,

Triac, what is the daily life work of triac

what is the daily life work of triac

., ABOUT ASSIGNMENT ON MAGNETIC INDUCTION NEAR A LONG WIRE

ABOUT ASSIGNMENT ON MAGNETIC INDUCTION NEAR A LONG WIRE

Magnetic Circuits:, A circular ring of magnetic material has a mean length ...

A circular ring of magnetic material has a mean length of 1m and a cross sectional area of .001m^2.A sawcut of 5mm width is made in the ring . calculate the magnetizing current req

Show the subtraction method, Q. Show the Subtraction Method? For this p...

Q. Show the Subtraction Method? For this procedure (method), start with a weighted position value greater that the number. If the number is greater than the weighted position f

Matlab simulation, Simulate and compare BER of QPSK system and 4-QAM system...

Simulate and compare BER of QPSK system and 4-QAM system without grey coding Eb/No=0.2.4.6.8.10

Semiconductors, Charge density I n a semiconductor

Charge density I n a semiconductor

Evaluate the damping ratio for the gain, A feedback control system with the...

A feedback control system with the configuration of Figure has the following parameters: K p = 0.5 V/rad, K a = 100 V/V, K m = 2.7 × 10 -4 N·m/V, J = 1.5 × 10 -5 kg·m 2 , and

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