Morphological Image Library : Smil vs scikit-image

On nestor

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:42:54 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 -       1.486       0.008       1.476       1.498 - (ms)
  2.0 -    512  1 -       4.352       0.148       4.089       4.623 - (ms)
  4.0 -   1024  1 -      16.169       0.415      15.485      16.825 - (ms)
  8.0 -   2048  1 -      53.168       0.771      52.200      54.198 - (ms)
 16.0 -   4096  1 -     190.871       0.597     190.214     192.180 - (ms)
 32.0 -   8192  1 -     734.495       0.431     733.858     735.133 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.547       0.000       0.546       0.547 - (ms)
  2.0 -    512  1 -       2.156       0.002       2.153       2.159 - (ms)
  4.0 -   1024  1 -      10.266       0.004      10.263      10.274 - (ms)
  8.0 -   2048  1 -      45.613       0.017      45.590      45.633 - (ms)
 16.0 -   4096  1 -     177.431       0.064     177.347     177.557 - (ms)
 32.0 -   8192  1 -     702.430       0.384     701.579     702.911 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.486 |       0.547 |          0.368 -0.434
    512 |       4.352 |       2.156 |          0.495 -0.305
   1024 |      16.169 |      10.266 |          0.635 -0.197
   2048 |      53.168 |      45.613 |          0.858 -0.067
   4096 |     190.871 |     177.431 |          0.930 -0.032
   8192 |     734.495 |     702.430 |          0.956 -0.019

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

* Elapsed time : 99.2 s

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

=> Elapsed time : 100 secs
   Begin        : 12:42:53
   End          : 12:44:33