Lecture - Bilateral filter

Lecture - Bilateral filter - EE 4780 Bilateral Filter...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EE 4780 Bilateral Filter Bahadir K. Gunturk 2 Bilateral Filter ( 29 2 2 2 2 / 2 ( ) ( ) / 2 1 ( ) ( ) d r x N y x I y I x y x N I x e e I y K +---- = - = Intensity (range) proximity Spatial (domain) proximity N is a fixed value used to define the spatial neighborhood of the filter K is the normalization constant ( 29 2 2 2 2 / 2 ( ) ( ) / 2 d r x N y x I y I x y x N K e e +---- = - = Bahadir K. Gunturk 3 Bilateral Filter Matlab implementation n=1:1:500; % Generate a vector from 1 to 500; the increment is 1. I0=zeros(size(n)); % Generate a vector of zeros; the size of the vector is equal to the size of n. I0(1:250)=15; I0(251:end)=10; % Set the first 250 values to 15, and the rest to 10. I = I0 + 0.5*randn(size(I0)); % 0.5 is the standard deviation of the noise figure; subplot(2,1,1); plot(n,I0); axis ([190 310 6 18]); title('Original signal'); subplot(2,1,2); plot(n,I); axis ([190 310 6 18]); title('Noisy signal'); Bahadir K. Gunturk 4 Bilateral Filter Matlab implementation sigma_d=10; N=round(4*sigma_d); % N determines the spatial neighborhood sigma_r=1.3; d = -N:1:N; weights_d = exp(-d.*d/(2*sigma_d*sigma_d)); ( 29 2 2 2 2 / 2 ( ) ( ) / 2 1 ( ) ( ) d r...
View Full Document

This note was uploaded on 11/28/2011 for the course EE 4780 taught by Professor Staff during the Spring '08 term at LSU.

Page1 / 19

Lecture - Bilateral filter - EE 4780 Bilateral Filter...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online