Morphological Image Library : Smil vs scikit-image

On taurus

Image metal - 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:47:08 PM
Image    : metal.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 -       2.157       0.018       2.138       2.190 - (ms)
  2.0 -    512  1 -       5.829       0.055       5.798       5.959 - (ms)
  4.0 -   1024  1 -      19.020       0.136      18.909      19.285 - (ms)
  8.0 -   2048  1 -      71.739       1.924      69.328      75.115 - (ms)
 16.0 -   4096  1 -     243.322       1.686     242.120     247.232 - (ms)
 32.0 -   8192  1 -     778.661       9.478     767.970     798.357 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.348       0.004       0.346       0.359 - (ms)
  2.0 -    512  1 -       1.757       0.002       1.754       1.760 - (ms)
  4.0 -   1024  1 -       8.308       0.007       8.297       8.322 - (ms)
  8.0 -   2048  1 -      44.866       0.022      44.821      44.891 - (ms)
 16.0 -   4096  1 -     179.149       0.044     179.086     179.216 - (ms)
 32.0 -   8192  1 -     712.876       0.461     712.339     713.612 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       2.157 |       0.348 |          0.162 -0.792
    512 |       5.829 |       1.757 |          0.301 -0.521
   1024 |      19.020 |       8.308 |          0.437 -0.360
   2048 |      71.739 |      44.866 |          0.625 -0.204
   4096 |     243.322 |     179.149 |          0.736 -0.133
   8192 |     778.661 |     712.876 |          0.916 -0.038

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

* Elapsed time : 99.6 s

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

=> Elapsed time : 100 secs
   Begin        : 12:47:07
   End          : 12:48:47