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

Characteristics of common drain amplifier, Normal 0 false fal...

Normal 0 false false false EN-IN X-NONE X-NONE

Survey methods and analysis - power supply, Survey Methods and Analysis - P...

Survey Methods and Analysis - Power Supply There are two major methods of gathering information from customers: qualitative and quantitative.  Quantitative Rese

Programming languages - introduction to microprocessors , Programming langu...

Programming languages As we  have seen  the evolution of computer  hardware  similarly  programming  languages also  have their  history  of development from  machine  language

Embedded systems design, You have been requested by your Senior Engineer to...

You have been requested by your Senior Engineer to design a lift control unit (LCU) and prepare a report detailing your proposed solution. The client requires a microcontroller bas

Explain about blocking probabilityand grade of service, Q. Explain about bl...

Q. Explain about blocking probabilityand Grade of service? And what do you mean by delay systems in telecommunication networks? Ans: Grade of service: In loss systems, traff

Energy stored in the coil, The term representing the energy stored in the c...

The term representing the energy stored in the coil may be written in terms of the inductance of the coil as... The energy stored in the coil increases with the square of t

Find largest of n numbers stored in t memory, To determine the largest of n...

To determine the largest of n numbers stored into t memory, write a program in assembly language. A program of the largest of n numbers stored into t memory in assembly languag

Compare procedure and macro, Compare Procedure & Macro  Accessed by CAL...

Compare Procedure & Macro  Accessed by CALL & RET instruction Accessed during assembly with name given during program implementation to macro when defined Machine code for inst

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