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

Compute the received carrier frequency, Consider a transmitter S which radi...

Consider a transmitter S which radiates a sinusoidal carrier frequency of 1850 MHz. For a vehicle moving at 26.82 m/s, compute the received carrier frequency if the vehicle is movi

Transformes, how to calculate the sending line voltage

how to calculate the sending line voltage

Draw a diagram of ultrasonic machine, Draw a diagram of ultrasonic Machine ...

Draw a diagram of ultrasonic Machine and illustrate its important parts? Discuss the following important element of ultrasonic process. (i) Abrasive slurry. (ii) Work Mate

What is maximum memory size that can be addressed by 8086, What is the maxi...

What is the maximum memory size that can be addressed by 8086? In 8086, an memory location is addressed by 20 bit address and the address bus is 20 bit address and the address

Digital ttl circuit, Execution of Digital Logic Circuits A safety circ...

Execution of Digital Logic Circuits A safety circuit is employed on a lathe to prevent the motor turning if it is not safe to operate. A series of 2 switches are used to check

What is polymerised resultant of phenol and formaldehyde, Phenol and Formal...

Phenol and Formaldehyde are polymerised to a resultant product known as (A) PVC.                                  (B) bakelite. (C)  Polyester.                        (D)

Show bandwidth of the system, A communication system for a voice-band (3 kH...

A communication system for a voice-band (3 kHz) channel is designed for a received SNR E b /N 0 at the detector of 30 dB when the transmitter power is Ps =-3 dBW. Find the value o

Rectification, diagram for full wave bridge circuit single phase,full wave ...

diagram for full wave bridge circuit single phase,full wave centre tap circuit and haif wave rectification circuit

Find the meter reading for sine wave, Q. ADMM (digital multi meter) reads t...

Q. ADMM (digital multi meter) reads true rms values of current. If the peak value of each of the following periodic current waves is 5 A, find the meter reading for: (a) a sine wav

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