Morphological Image Library : Smil vs scikit-image

On taurus

Image bubbles_gray - Type gray - Function erode


SMIL (Simple Morphological Image Library) 1.0.0-dev
Copyright (c) 2011-2016, Matthieu FAESSEL and ARMINES
Copyright (c) 2017-2021, CMM - Centre de Morphologie Mathematique
All rights reserved.

Date     : 30/09/2021 12:43:38 PM
Image    : bubbles_gray.png
  width  :   512
  height :   512
  depth  :     1
  type   : gray
Function : erode
  repeat :     7


-*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*-

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.055       0.001       0.054       0.058 - (ms)
  1.0 -    512  1 -       0.050       0.000       0.050       0.051 - (ms)
  2.0 -   1024  1 -       0.078       0.001       0.077       0.081 - (ms)
  4.0 -   2048  1 -       0.107       0.002       0.104       0.110 - (ms)
  8.0 -   4096  1 -       0.225       0.000       0.225       0.226 - (ms)
 16.0 -   8192  1 -       1.422       0.001       1.421       1.423 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.778       0.002       0.776       0.781 - (ms)
  1.0 -    512  1 -       3.011       0.009       2.996       3.022 - (ms)
  2.0 -   1024  1 -      12.120       0.020      12.097      12.155 - (ms)
  4.0 -   2048  1 -      53.078       0.316      52.552      53.473 - (ms)
  8.0 -   4096  1 -     218.362       0.334     217.841     219.013 - (ms)
 16.0 -   8192  1 -     875.531       1.749     873.403     878.496 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.055 |       0.778 |         14.118  1.150
    512 |       0.050 |       3.011 |         59.901  1.777
   1024 |       0.078 |      12.120 |        155.832  2.193
   2048 |       0.107 |      53.078 |        497.958  2.697
   4096 |       0.225 |     218.362 |        968.753  2.986
   8192 |       1.422 |     875.531 |        615.785  2.789

  - [*] : ratio and log10(ratio) in columns

* Elapsed time : 97.5 s

-*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*-

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -       0.111       0.005       0.108       0.122 - (ms)
  4.0 -   2048  2 -       0.155       0.001       0.154       0.156 - (ms)
  4.0 -   2048  3 -       0.200       0.001       0.198       0.201 - (ms)
  4.0 -   2048  4 -       0.246       0.002       0.244       0.248 - (ms)
  4.0 -   2048  5 -       0.297       0.006       0.290       0.308 - (ms)
  4.0 -   2048  6 -       0.364       0.012       0.352       0.383 - (ms)
  4.0 -   2048  7 -       0.419       0.006       0.410       0.428 - (ms)
  4.0 -   2048  8 -       0.466       0.014       0.436       0.482 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -      52.922       0.483      52.432      53.657 - (ms)
  4.0 -   2048  2 -     114.553       0.250     114.279     114.965 - (ms)
  4.0 -   2048  3 -     208.297       0.083     208.229     208.484 - (ms)
  4.0 -   2048  4 -     368.790       0.128     368.570     368.992 - (ms)
  4.0 -   2048  5 -     534.409       0.080     534.335     534.539 - (ms)
  4.0 -   2048  6 -     723.777       0.086     723.658     723.880 - (ms)
  4.0 -   2048  7 -     944.683       0.222     944.472     945.160 - (ms)
  4.0 -   2048  8 -    1197.382       0.152    1197.210    1197.686 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.111 |      52.922 |        476.832  2.678
      2 |       0.155 |     114.553 |        738.642  2.868
      3 |       0.200 |     208.297 |       1042.423  3.018
      4 |       0.246 |     368.790 |       1497.843  3.175
      5 |       0.297 |     534.409 |       1797.075  3.255
      6 |       0.364 |     723.777 |       1986.503  3.298
      7 |       0.419 |     944.683 |       2257.299  3.354
      8 |       0.466 |    1197.382 |       2571.115  3.410

  - [*] : ratio and log10(ratio) in columns

* Elapsed time : 132.3 s


-*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*-

=> Elapsed time : 231 secs
   Begin        : 12:43:37
   End          : 12:47:28