Bilateral Filter

16
Bilateral Filter Wojciech Korycki [email protected] 23.06.2010 Wrocław Implementations compare

description

Bilateral Filter. Implementations compare. Wojciech Korycki [email protected] 23.06.2010 Wrocław. Bilateral Filter- introduction. Bilateral filtering will preserve edges. but… - PowerPoint PPT Presentation

Transcript of Bilateral Filter

Page 1: Bilateral Filter

Bilateral Filter

Wojciech Korycki [email protected] Wrocław

Implementations compare

Page 2: Bilateral Filter

Bilateral Filter- introductionBilateral filtering will preserve edges

but…

To high parameters, that is R = MAX, might change bilateral filter to normal Gaussian filter. (MAX- usually 255 or 1)

Page 3: Bilateral Filter

Bilateral Filter- implementations

Application implemetations

Bilateral Filter

NormalBilateral Filter

Cross Bilateral Filter

CPU

CPU (indexing)

Fast approximation

CUDA

CPU

CPU (indexing)

Fast approximation

CUDA

Page 4: Bilateral Filter

Bilateral Filter- testing

Test images

Page 5: Bilateral Filter

Bilateral Filter- testing

Processing time tabble for 8-bit gray scale image

Image Lena.bmp (512x512, 8-bit Gray Scale)

Bilateral Filter

Processing typeParameters

S RParameters

S RParameters

S R

3 10 7 10 11 10

t [s] t [s] t [s]

CPU 2,023 6,821 14,394

CPU (indexing) 0,694 1,182 2,091

Fast Approximation 0,141 0,137 0,201

CUDA 0,019 0,051 0,108

Page 6: Bilateral Filter

Bilateral Filter- testing

Processing time diagram for 8-bit gray scale image

Page 7: Bilateral Filter

Bilateral Filter- testing

Visual results

Page 8: Bilateral Filter

Bilateral Filter- testing

Processing time tabble for 24-bit RGB image

image Iwonka.bmp (24-bit RGB)

Bilateral Filter

Processing typeParameters

S R

Parameters

S R

Parameters

S R

3 10 7 10 11 10

t [s] t [s] t [s]

CPU 2,356 8,12 17,728

CPU (indexing) 0,975 2,085 4,11

Fast Approximation 0,538 0,339 0,444

CUDA 0,026 0,08 0,174

Page 9: Bilateral Filter

Bilateral Filter- testing

Processing time diagram for 24-bit RGBimage

Page 10: Bilateral Filter

Bilateral Filter- testing

Visual results

Page 11: Bilateral Filter

Bilateral Filter- testing

Processing result

Page 12: Bilateral Filter

Bilateral Filter- summaryGeneral profit in CUDA processing (time in [s])

Page 13: Bilateral Filter

Bilateral Filter- addons

Result of Cross Bilateral Filter processing

+

=

Page 14: Bilateral Filter

Bilateral Filter- addons

Iterations= 10 <=cartoon like images=> iterations= 20

Page 15: Bilateral Filter

Bilateral Filter- side effects

Fog effect

Page 16: Bilateral Filter

Bilateral Filter- side effects

Edges blur