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

Segment assembler directive, What do you understand by SEGMENT assemble...

What do you understand by SEGMENT assembler directive? SEGMENT: This directive explains to the assembler the start of a segment along with name segment-name. The segment

What is trans conductance, Q. What is Trans conductance? It is ratio of...

Q. What is Trans conductance? It is ratio of small change in drain current to the corresponding change in the gate-to-source voltage for a constant gate-to-source voltage .it i

Specific core indicators method, Specific Core Indicators Method This ...

Specific Core Indicators Method This technique emphasizes to assign the responsibility and create the accountability. It is possible in which for any of the main indicators, t

Explain the principle of a thermocouple, Explain the principle of a thermoc...

Explain the principle of a thermocouple. Give two examples of some common thermocouples. Thermocouples : They are used for the measurement of temperature. While two wires of v

FET, shockely equation?

shockely equation?

E. mechanics, a train weight 5 megaN is taking a slope of 1 in 200 at 45 km...

a train weight 5 megaN is taking a slope of 1 in 200 at 45 kmper hour.the engine put in 100 kw.determine the power to be put in by the engine it the train take the slope up of 1 in

Develop an electric equivalent network, Q. For the mechanical spring-mass-f...

Q. For the mechanical spring-mass-friction system shown in Figure, the differential equation relating the force F(t) and the velocity u(t) is given by  where M is themass,D

Thunderstrom detector, Ask question #how to construct thunderstrom detector...

Ask question #how to construct thunderstrom detector with circuit breaker.

Inr increment instruction, INR (Increment )  Instruction This  instruct...

INR (Increment )  Instruction This  instruction is used to  increment  the contents  of any  register or memory  location by one. There  are two  format.

Determine currents in the circuits, Determine currents in the circuits: ...

Determine currents in the circuits: Determine currents I 1 and I 2 in the given circuits by applying KVL. Solution We apply KVL for first loop : 10 = 1 I 1   + 1

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