Morphological Image Library : Smil vs scikit-image

On nestor

Image balls - 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:34:30 PM
Image    : balls.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.296       0.009       1.279       1.309 - (ms)
  2.0 -    512  1 -       4.297       0.194       4.020       4.548 - (ms)
  4.0 -   1024  1 -      14.274       0.686      12.960      15.308 - (ms)
  8.0 -   2048  1 -      52.461       0.187      52.206      52.722 - (ms)
 16.0 -   4096  1 -     185.401       0.967     183.916     186.542 - (ms)
 32.0 -   8192  1 -     726.040       0.229     725.714     726.381 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.466       0.000       0.466       0.467 - (ms)
  2.0 -    512  1 -       1.864       0.002       1.862       1.868 - (ms)
  4.0 -   1024  1 -       9.761       0.009       9.751       9.775 - (ms)
  8.0 -   2048  1 -      41.062       0.028      41.030      41.118 - (ms)
 16.0 -   4096  1 -     159.144       0.288     158.909     159.692 - (ms)
 32.0 -   8192  1 -     629.654       0.253     629.402     630.011 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.296 |       0.466 |          0.360 -0.444
    512 |       4.297 |       1.864 |          0.434 -0.363
   1024 |      14.274 |       9.761 |          0.684 -0.165
   2048 |      52.461 |      41.062 |          0.783 -0.106
   4096 |     185.401 |     159.144 |          0.858 -0.066
   8192 |     726.040 |     629.654 |          0.867 -0.062

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

* Elapsed time : 99.4 s

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

=> Elapsed time : 100 secs
   Begin        : 12:34:30
   End          : 12:36:10