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

Explain about the typical embedded system hardware unit, Explain about the ...

Explain about the typical embedded system hardware unit. Typical Embedded System Hardware Unit: Program Flow and data path Control Unit (CU): comprises a fetch unit for fetc

Microprocessor, what is the function of CBW in the microprocessor

what is the function of CBW in the microprocessor

Compute the current supplied by the source, Q. A balanced three-phase, wye-...

Q. A balanced three-phase, wye-connected, 2400- V, 60-Hz source supplies two balanced wye- connected loads in parallel. The first draws 15 kVA at 0.8 power factor lagging, and the

find the current and voltage by ohms law and kvl, 1. A current carrying co...

1. A current carrying conductor is found to carry 10 μA at a given time slot from 5μs to 1.5 ms. Find the total number of electrons flowing in the conductor during this time slot.

Compute the force, Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az...

Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az kA located at (0,0,1) and another I 2 d ¯ l 2 = 5dx ¯ ax kA located at (0,1,0). Compute d ¯ F 21 and d ¯ F 12 experienc

Differentiate between a clamper and clipper, Q. What is a clamper? Differen...

Q. What is a clamper? Differentiate between a clamper and clipper. Clamping network shifts (clamps) a signal to a different dc level, i.e. it introduces a dc level to an ac sig

Characteristics of unijunction transistor, Characteristics of  unijunction...

Characteristics of  unijunction transistor: Characteristics : The static emitter characteristic of UJT at a given inter base voltage VBB in shown in fig. From fig., it is no

Quality control, three reasons why a chamfer shouldn''t be considered an un...

three reasons why a chamfer shouldn''t be considered an unimportant dimension

Automatic irrigation system on running solar power b, how to upload the pro...

how to upload the program on proteus soft ware by using personal computer?

Certification of energy managers, Certification of Energy Managers Ce...

Certification of Energy Managers Certification of Energy Managers and Accreditation of Energy Auditing Firms One of the important provisions in the Act is to create a cad

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