Morphological Image Library : Smil vs scikit-image

On nestor

Image coffee - 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:39:31 PM
Image    : coffee.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.719       0.365       1.557       2.612 - (ms)
  2.0 -    512  1 -       4.870       0.302       4.401       5.321 - (ms)
  4.0 -   1024  1 -      16.678       0.297      16.095      17.081 - (ms)
  8.0 -   2048  1 -      55.347       1.169      52.553      56.293 - (ms)
 16.0 -   4096  1 -     194.775       0.830     193.372     195.875 - (ms)
 32.0 -   8192  1 -     740.746       0.581     740.198     742.052 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.557       0.001       0.556       0.558 - (ms)
  2.0 -    512  1 -       2.173       0.001       2.171       2.174 - (ms)
  4.0 -   1024  1 -      11.366       0.006      11.359      11.376 - (ms)
  8.0 -   2048  1 -      45.395       0.009      45.386      45.407 - (ms)
 16.0 -   4096  1 -     176.687       0.084     176.557     176.802 - (ms)
 32.0 -   8192  1 -     698.985       0.334     698.207     699.277 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.719 |       0.557 |          0.324 -0.489
    512 |       4.870 |       2.173 |          0.446 -0.351
   1024 |      16.678 |      11.366 |          0.682 -0.167
   2048 |      55.347 |      45.395 |          0.820 -0.086
   4096 |     194.775 |     176.687 |          0.907 -0.042
   8192 |     740.746 |     698.985 |          0.944 -0.025

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

* Elapsed time : 98.4 s

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

=> Elapsed time : 99 secs
   Begin        : 12:39:30
   End          : 12:41:09