Morphological Image Library : Smil vs scikit-image

On nestor

Image lena - 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 02:47:05 PM
Image    : lena.png
  width  :   256
  height :   256
  depth  :     1
  type   : gray
Function : erode
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.016       0.000       0.016       0.016 - (ms)
  2.0 -    512  1 -       0.032       0.000       0.032       0.032 - (ms)
  4.0 -   1024  1 -       0.094       0.000       0.094       0.094 - (ms)
  8.0 -   2048  1 -       0.373       0.000       0.372       0.373 - (ms)
 16.0 -   4096  1 -       2.476       0.001       2.475       2.477 - (ms)
 32.0 -   8192  1 -      10.078       0.004      10.072      10.084 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.341       0.000       1.341       1.341 - (ms)
  2.0 -    512  1 -       3.138       0.001       3.138       3.139 - (ms)
  4.0 -   1024  1 -      12.591       0.001      12.590      12.593 - (ms)
  8.0 -   2048  1 -      53.129       0.004      53.123      53.134 - (ms)
 16.0 -   4096  1 -     209.838       0.012     209.814     209.849 - (ms)
 32.0 -   8192  1 -     838.781       0.020     838.748     838.804 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.016 |       1.341 |         81.430  1.911
    512 |       0.032 |       3.138 |         98.741  1.994
   1024 |       0.094 |      12.591 |        134.028  2.127
   2048 |       0.373 |      53.129 |        142.582  2.154
   4096 |       2.476 |     209.838 |         84.750  1.928
   8192 |      10.078 |     838.781 |         83.228  1.920

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

* Elapsed time : 98.4 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.367       0.000       0.367       0.367 - (ms)
  8.0 -   2048  2 -       0.697       0.000       0.697       0.698 - (ms)
  8.0 -   2048  3 -       1.016       0.000       1.016       1.016 - (ms)
  8.0 -   2048  4 -       1.341       0.000       1.340       1.342 - (ms)
  8.0 -   2048  5 -       1.658       0.001       1.658       1.659 - (ms)
  8.0 -   2048  6 -       1.979       0.001       1.979       1.980 - (ms)
  8.0 -   2048  7 -       2.307       0.001       2.307       2.308 - (ms)
  8.0 -   2048  8 -       2.619       0.000       2.618       2.619 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -      53.131       0.007      53.118      53.141 - (ms)
  8.0 -   2048  2 -      96.819       0.007      96.808      96.828 - (ms)
  8.0 -   2048  3 -     169.178       0.007     169.166     169.189 - (ms)
  8.0 -   2048  4 -     238.192       0.015     238.170     238.209 - (ms)
  8.0 -   2048  5 -     324.693       0.043     324.664     324.793 - (ms)
  8.0 -   2048  6 -     428.476       0.045     428.429     428.573 - (ms)
  8.0 -   2048  7 -     549.479       0.068     549.399     549.610 - (ms)
  8.0 -   2048  8 -     688.019       0.133     687.884     688.240 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.367 |      53.131 |        144.796  2.161
      2 |       0.697 |      96.819 |        138.918  2.143
      3 |       1.016 |     169.178 |        166.554  2.222
      4 |       1.341 |     238.192 |        177.657  2.250
      5 |       1.658 |     324.693 |        195.779  2.292
      6 |       1.979 |     428.476 |        216.465  2.335
      7 |       2.307 |     549.479 |        238.153  2.377
      8 |       2.619 |     688.019 |        262.750  2.420

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

* Elapsed time : 130.0 s


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

=> Elapsed time : 229 secs
   Begin        : 14:47:04
   End          : 14:50:53