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

Develop an analog computer simulation diagram, Q. Develop an analog compute...

Q. Develop an analog computer simulation diagram to solve the differential equation with y(0) = 2 and ? y(0) = 0.

Demagnetizing and cross magnetizing effects , Q.   What do you understand b...

Q.   What do you understand by demagnetizing and cross magnetizing effects of armature reaction in a d.c. machine. Derive the expression for calculation of demagnetizing and cross

Metering technologies, Metering Technologies An electric meter or ener...

Metering Technologies An electric meter or energy meter is a device in which measures the amount of electrical energy supplied to customers of an electric supply company. Elec

.voltmeter, circuit diagram,working and construction of voltmeter

circuit diagram,working and construction of voltmeter

Sequential diagram, 1) Draw the state diagram for the state machine describ...

1) Draw the state diagram for the state machine described by Table 7.5 in the text. Note, the table shows the transition to the next state S* from the current state S for the next

Assignment question , An audio amplifier with feedback needs gain of approx...

An audio amplifier with feedback needs gain of approximately 500 in a 3-dB bandwidth extending from 60 Hz to 25 kHz. Assume this is accomplished using a feedback network with ß=0.0

Describe the function of material handling system, a) Diagram FMS layout co...

a) Diagram FMS layout configurations with labeling. b) what are the basic components of FMS?Discuss in briefly. c) Describe the function of material handling system.

Internalization of KPI Process, Internalization of KPI Process It is t...

Internalization of KPI Process It is the responsibility of management to ensure in which the focus of all the participants in performance management and KPI exercise is there

What is segmentation, What is segmentation? Segment memory addressing d...

What is segmentation? Segment memory addressing divides the memory in several segments. All of these segments can be seen as a linear memory space. All of these segments are ad

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