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 binary number system, Q. Describe binary number system? The bi...

Q. Describe binary number system? The binary number system has a base of 2 with two distinct digits (bits), 1 and 0. A binary number is expressed as a string of 0s and 1s, and

R.h. corkscrew rule, R.h. corkscrew rule Note the direction of the flu...

R.h. corkscrew rule Note the direction of the flux is given by Maxwell's 'R.H. corkscrew rule' and that the flux lines are continuous Applying  Ampere's  Law  to  a  concentri

What are the features used mode 2 in 8255, What are the features used mode ...

What are the features used mode 2 in 8255? The single 8-bit port in-group A is available. 1. The 8-bit port is bi-directional and additionally a 5-bit control port is availa

Sketch ro versus vgs, Q. Sketch g m versus v GS for a JFET with I DSS = ...

Q. Sketch g m versus v GS for a JFET with I DSS = 10 mA, V P = 3V, V A = 100 V, and v DS = 10 V. See what happens if V A →∞. Also sketch r o versus v GS .

Control, The goal of this project is to model a system and to design a cont...

The goal of this project is to model a system and to design a controller for the system so that the closed-loop system performs satisfactorily.

Asynchronous message passing and synchronous-message passing, Question: ...

Question: a) Differentiate between Asynchronous message passing and Synchronous-message passing. b) If keyboards are the predominant means of interface to human input, the

Register addressing , Register Addressing In this  mode the operand ar...

Register Addressing In this  mode the operand are microprocessors  registers only i, e  the operations is performed  within  various  registers of the  microprocessors  only.

Square wave, Connect the TTL output (square wave) of the "Audio Oscillator"...

Connect the TTL output (square wave) of the "Audio Oscillator" to the "Scope Selector". Adjust the frequency of the square wave to 2 kHz. Observe and record the time domain pict

Assignment, design single phase distribution circuit from a supply point to...

design single phase distribution circuit from a supply point to a load

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