Morphological Image Library : Smil vs scikit-image

On taurus

Image cells - 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:38:26 PM
Image    : cells.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.713       0.009       1.702       1.724 - (ms)
  2.0 -    512  1 -       4.809       0.016       4.795       4.843 - (ms)
  4.0 -   1024  1 -      16.818       0.045      16.774      16.898 - (ms)
  8.0 -   2048  1 -      69.624       0.371      69.194      70.014 - (ms)
 16.0 -   4096  1 -     236.630       3.737     234.864     245.733 - (ms)
 32.0 -   8192  1 -     759.321       2.127     757.084     762.892 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.320       0.000       0.320       0.320 - (ms)
  2.0 -    512  1 -       1.478       0.001       1.476       1.480 - (ms)
  4.0 -   1024  1 -       7.951       0.003       7.946       7.957 - (ms)
  8.0 -   2048  1 -      44.812       0.038      44.771      44.890 - (ms)
 16.0 -   4096  1 -     178.808       0.060     178.734     178.923 - (ms)
 32.0 -   8192  1 -     715.311       0.426     714.640     716.073 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.713 |       0.320 |          0.187 -0.728
    512 |       4.809 |       1.478 |          0.307 -0.512
   1024 |      16.818 |       7.951 |          0.473 -0.325
   2048 |      69.624 |      44.812 |          0.644 -0.191
   4096 |     236.630 |     178.808 |          0.756 -0.122
   8192 |     759.321 |     715.311 |          0.942 -0.026

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

* Elapsed time : 101.1 s

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

=> Elapsed time : 102 secs
   Begin        : 12:38:25
   End          : 12:40:07