Morphological Image Library : Smil vs scikit-image

On taurus

Image gruyere - 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:43:40 PM
Image    : gruyere.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.233       0.021       2.210       2.277 - (ms)
  2.0 -    512  1 -       5.915       0.136       5.584       6.006 - (ms)
  4.0 -   1024  1 -      19.673       0.384      19.452      20.605 - (ms)
  8.0 -   2048  1 -      73.335       1.861      71.359      77.366 - (ms)
 16.0 -   4096  1 -     244.679       0.567     243.884     245.464 - (ms)
 32.0 -   8192  1 -     783.804       9.213     771.512     803.490 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.496       0.000       0.496       0.497 - (ms)
  2.0 -    512  1 -       2.275       0.006       2.268       2.286 - (ms)
  4.0 -   1024  1 -      11.380       0.053      11.335      11.483 - (ms)
  8.0 -   2048  1 -      57.690       0.177      57.551      58.107 - (ms)
 16.0 -   4096  1 -     221.801       0.240     221.524     222.241 - (ms)
 32.0 -   8192  1 -     883.930       0.548     883.089     884.770 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       2.233 |       0.496 |          0.222 -0.653
    512 |       5.915 |       2.275 |          0.385 -0.415
   1024 |      19.673 |      11.380 |          0.578 -0.238
   2048 |      73.335 |      57.690 |          0.787 -0.104
   4096 |     244.679 |     221.801 |          0.906 -0.043
   8192 |     783.804 |     883.930 |          1.128  0.052

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

* Elapsed time : 103.9 s

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

=> Elapsed time : 105 secs
   Begin        : 12:43:39
   End          : 12:45:24