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

Describe in brief how email system works, Describe in brief how email syste...

Describe in brief how email system works Following is a simple description of how email system works: -  Sender composes a message (and attaches a file if required) and send

What is balanced discriminator, Q. What is balanced discriminator? A ba...

Q. What is balanced discriminator? A balanced discriminator with the corresponding frequency characteristics is depicted in Figure. The rising half of the frequency characteris

Electronic monitor and alarm system for an oil separator, This assignment i...

This assignment is to develop a User Requirements Specification for an electronic monitor and alarm system for an Oil Separator in Surface Water Drainage Systems. These separato

Name all the switching schemes used in a digital exchange, Q. Name all the ...

Q. Name all the switching schemes used in a digital exchange. How call processing occur? Ans: The basic types of switching systems used are: 1.  Stronger Switching System

assembly language program , Write an Assembly language program that will p...

Write an Assembly language program that will produce a PWM signal with a desired average voltage. The user selects the desired average voltage by pressing keys 1 - 4. If the

Illustrate the basic concept of machine cell design, a) Write short notes o...

a) Write short notes on part feeding devices and transfer mechanism. b) Explain with example automation for machining operation with relevant diagrams. c) discuss different p

Explain iron and silicon iron alloys, Explain iron and silicon iron alloys....

Explain iron and silicon iron alloys. Iron: Galvanised steel and iron wires that are usually used for earth conductor in low voltage distribution systems may also be utilize

Cro, Ask question #Minimum 100 words accepteddelay line in cro#

Ask question #Minimum 100 words accepteddelay line in cro#

Explain the operation of the counter, Q. Figure shows the mod-8 counter whi...

Q. Figure shows the mod-8 counter which counts from 010 to 710 before resetting. Explain the operation of the counter and sketch the timing diagram.

#titleElectromagnetic Induction, Hello, I have some questions pertaining t...

Hello, I have some questions pertaining to electromagnetic induction. Could you please give me a hand? Thanks. If we increase the speed of the bar magnet slowly from 0 to 8, 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