Morphological Image Library : Smil vs scikit-image

On taurus

Image cells - Type bin - Function areaThreshold


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     : 05/08/2021 10:10:59 AM
Image    : cells.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : areaThreshold
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.902       0.057       1.876       2.041 - (ms)
  2.0 -    512  1 -       6.002       0.004       5.999       6.012 - (ms)
  4.0 -   1024  1 -      22.721       0.028      22.700      22.788 - (ms)
  8.0 -   2048  1 -      89.832       0.356      89.652      90.700 - (ms)
 16.0 -   4096  1 -     367.958       2.219     366.152     373.202 - (ms)
 32.0 -   8192  1 -    1383.812      46.236    1358.108    1496.006 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.711       0.000       0.710       0.711 - (ms)
  2.0 -    512  1 -       3.107       0.003       3.105       3.114 - (ms)
  4.0 -   1024  1 -      14.721       0.004      14.717      14.729 - (ms)
  8.0 -   2048  1 -      82.050       0.026      82.010      82.087 - (ms)
 16.0 -   4096  1 -     333.110       0.477     332.437     333.954 - (ms)
 32.0 -   8192  1 -    1335.716       2.920    1333.977    1342.805 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.902 |       0.711 |          0.374 -0.428
    512 |       6.002 |       3.107 |          0.518 -0.286
   1024 |      22.721 |      14.721 |          0.648 -0.188
   2048 |      89.832 |      82.050 |          0.913 -0.039
   4096 |     367.958 |     333.110 |          0.905 -0.043
   8192 |    1383.812 |    1335.716 |          0.965 -0.015

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

* Elapsed time : 98.3 s

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

=> Elapsed time : 100 secs
   Begin        : 10:10:58
   End          : 10:12:38