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

Kirchoff''s current law, Kirchoff's Current Law The total current ent...

Kirchoff's Current Law The total current entering a node in a circuit is equal to the total current leaving that node. A Node is a junction between two or more components.

Find the residual output offset voltage, Q. In order to minimize output vol...

Q. In order to minimize output voltage offsets in practical op-amp circuits, one provides a dc path from each input terminal to ground, makes each input terminal see the same exter

Device switching losses and snubbers, May I know if your site can help me w...

May I know if your site can help me with design a snubber and model the circuit using LTSpice software?

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

how to upload the program on proteus software by using personal computer

Variable capacitors, how can I simulate air variable capacitors in cst simu...

how can I simulate air variable capacitors in cst simulator?

Estimate the maximum number of conversions, Q. The speed of an 8-bit A/D co...

Q. The speed of an 8-bit A/D converter is limited by the counter, which has a maximum speed of 4 × 10 7 counts per second. Estimate the maximum number of A/D conversions per secon

Voltage divider with ac bypasses capacitor, Voltage divider with AC bypasse...

Voltage divider with AC bypasses capacitor: Figure: Voltage divider with capacitor The standard voltage divider circuit that is discussed above faces a drawback - A

Explain implicit data addressing mode, Explain implicit data addressing mod...

Explain implicit data addressing mode (with examples) available in microprocessors. Implicit Mode: Does not exactly give an operand. Instruction implicitly gives the o

In given block diagram find geq, Q. Show that the block diagram of Figure c...

Q. Show that the block diagram of Figure can be reduced to the form of Figure. Find G eq (s) and H eq (s).

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