티스토리 뷰

Game/DirectX 11

Bilateral filter (3)

newpolaris 2017. 3. 30. 23:55


근대 kernel 크지 않는한 사용 안하는게 좋을 듯


메모리랑 시간을 봐라; 암만 기적적 병렬화 해도 힘들것 처럼 보이는데;


newpolaris@Donghyuns-MacBook-Pro : ~/Projects/Bilaterial/COLOR_BILATERAL_FILTER

$ /usr/bin/time -l ./color_bilateral_filter dragon.ppm output.ppm 16 0.1

Load the input image 'dragon.ppm'... width 1200, height : 1600

Done

sigma_s    = 16

sigma_r    = 0.1

Filter the image... 

  [downsampling] cumulative time: 0.406069s #run: 1 average time: 0.406069s

  [convolution] cumulative time: 10.3932s #run: 1 average time: 10.3932s

  [nonlinearities] cumulative time: 0.671273s #run: 1 average time: 0.671273s

  [filter] cumulative time: 11.4707s #run: 1 average time: 11.4707s

Filtering done

Write the output image 'output.ppm'... Done

       11.98 real         8.43 user         3.53 sys

2756284416  maximum resident set size

         0  average shared memory size

         0  average unshared data size

         0  average unshared stack size

   2626417  page reclaims

         0  page faults

         0  swaps

         0  block input operations

         2  block output operations

         0  messages sent

         0  messages received

         0  signals received

         3  voluntary context switches

      2603  involuntary context switches


newpolaris@Donghyuns-MacBook-Pro : ~/Projects/Bilaterial/COLOR_BILATERAL_FILTER

$ /usr/bin/time -l ./color_bilateral_filter dragon.ppm output.ppm 25 0.1

Load the input image 'dragon.ppm'... width 1200, height : 1600

Done

sigma_s    = 25

sigma_r    = 0.1

Filter the image... 

  [downsampling] cumulative time: 0.195935s #run: 1 average time: 0.195935s

  [convolution] cumulative time: 4.40024s #run: 1 average time: 4.40024s

  [nonlinearities] cumulative time: 0.615317s #run: 1 average time: 0.615317s

  [filter] cumulative time: 5.21162s #run: 1 average time: 5.21162s

Filtering done

Write the output image 'output.ppm'... Done

        5.61 real         4.08 user         1.52 sys

1239982080  maximum resident set size

         0  average shared memory size

         0  average unshared data size

         0  average unshared stack size

   1145641  page reclaims

         0  page faults

         0  swaps

         0  block input operations

         3  block output operations

         0  messages sent

         0  messages received

         0  signals received

         3  voluntary context switches

       645  involuntary context switches


$ /usr/bin/time -l ./color_bilateral_filter dragon.ppm output.ppm 16 0.5

Load the input image 'dragon.ppm'... width 1200, height : 1600

Done

sigma_s    = 16

sigma_r    = 0.5

Filter the image... 

  [downsampling] cumulative time: 0.060938s #run: 1 average time: 0.060938s

  [convolution] cumulative time: 0.873095s #run: 1 average time: 0.873095s

  [nonlinearities] cumulative time: 0.573356s #run: 1 average time: 0.573356s

  [filter] cumulative time: 1.50751s #run: 1 average time: 1.50751s

Filtering done

Write the output image 'output.ppm'... Done

        1.95 real         1.55 user         0.38 sys

 380301312  maximum resident set size

         0  average shared memory size

         0  average unshared data size

         0  average unshared stack size

     92868  page reclaims

         0  page faults

         0  swaps

         0  block input operations

         1  block output operations

         0  messages sent

         0  messages received

         0  signals received

         4  voluntary context switches

      2835  involuntary context switches


OPENCV 버전


$ /usr/bin/time -l ./opencv_bilateral 16 0.8

        2.34 real        16.54 user         0.04 sys

  40972288  maximum resident set size

         0  average shared memory size

         0  average unshared data size

         0  average unshared stack size

     10669  page reclaims

         0  page faults

         0  swaps

         0  block input operations

         0  block output operations

         0  messages sent

         0  messages received

         0  signals received

         0  voluntary context switches

      3460  involuntary context switches


newpolaris@Donghyuns-MacBook-Pro : ~/Projects/Bilaterial/COLOR_BILATERAL_FILTER

$ /usr/bin/time -l ./opencv_bilateral 32 0.8

        9.26 real        66.09 user         0.09 sys

  41439232  maximum resident set size

         0  average shared memory size

         0  average unshared data size

         0  average unshared stack size

     10783  page reclaims

         0  page faults

         0  swaps

         0  block input operations

         0  block output operations

         0  messages sent

         0  messages received

         0  signals received

         0  voluntary context switches

     14270  involuntary context switches



'Game > DirectX 11' 카테고리의 다른 글

Tone mapping (2)  (0) 2017.04.02
Tone mapping  (0) 2017.04.01
Bilateral Filter (4)  (0) 2017.03.31
bilateral filter (2)  (0) 2017.03.30
bilateral filter  (0) 2017.03.30
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크