Morphological Image Library : Smil vs scikit-image

On nestor

Image eutectic - Type bin - Function fastLabel


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     : 25/08/2021 12:41:11 PM
Image    : eutectic.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : fastLabel
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.597       0.010       1.581       1.613 - (ms)
  2.0 -    512  1 -       5.166       0.258       4.822       5.646 - (ms)
  4.0 -   1024  1 -      16.791       0.244      16.555      17.206 - (ms)
  8.0 -   2048  1 -      56.155       0.703      54.494      56.765 - (ms)
 16.0 -   4096  1 -     194.953       0.692     193.968     195.910 - (ms)
 32.0 -   8192  1 -     743.579       0.450     743.184     744.361 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.623       0.003       0.618       0.625 - (ms)
  2.0 -    512  1 -       2.443       0.003       2.439       2.447 - (ms)
  4.0 -   1024  1 -      11.756       0.053      11.713      11.858 - (ms)
  8.0 -   2048  1 -      49.628       0.042      49.567      49.688 - (ms)
 16.0 -   4096  1 -     193.540       0.136     193.327     193.748 - (ms)
 32.0 -   8192  1 -     765.172       1.255     763.504     767.717 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.597 |       0.623 |          0.390 -0.409
    512 |       5.166 |       2.443 |          0.473 -0.325
   1024 |      16.791 |      11.756 |          0.700 -0.155
   2048 |      56.155 |      49.628 |          0.884 -0.054
   4096 |     194.953 |     193.540 |          0.993 -0.003
   8192 |     743.579 |     765.172 |          1.029  0.012

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

* Elapsed time : 101.9 s

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

=> Elapsed time : 103 secs
   Begin        : 12:41:10
   End          : 12:42:53