Morphological Image Library : Smil vs scikit-image

On taurus

Image coffee - 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:12:39 AM
Image    : coffee.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 -       3.306       0.014       3.297       3.339 - (ms)
  2.0 -    512  1 -      11.006       0.018      10.996      11.050 - (ms)
  4.0 -   1024  1 -      41.751       0.075      41.714      41.933 - (ms)
  8.0 -   2048  1 -     164.853       0.014     164.834     164.877 - (ms)
 16.0 -   4096  1 -     669.446       6.961     656.856     678.554 - (ms)
 32.0 -   8192  1 -    2609.737     116.086    2528.005    2884.601 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.071       0.000       1.070       1.071 - (ms)
  2.0 -    512  1 -       4.618       0.007       4.612       4.630 - (ms)
  4.0 -   1024  1 -      20.250       0.043      20.225      20.354 - (ms)
  8.0 -   2048  1 -     105.105       0.450     104.791     106.193 - (ms)
 16.0 -   4096  1 -     421.872       0.525     421.208     422.555 - (ms)
 32.0 -   8192  1 -    1694.118       2.836    1689.606    1698.022 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       3.306 |       1.071 |          0.324 -0.490
    512 |      11.006 |       4.618 |          0.420 -0.377
   1024 |      41.751 |      20.250 |          0.485 -0.314
   2048 |     164.853 |     105.105 |          0.638 -0.195
   4096 |     669.446 |     421.872 |          0.630 -0.201
   8192 |    2609.737 |    1694.118 |          0.649 -0.188

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

* Elapsed time : 114.1 s

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

=> Elapsed time : 116 secs
   Begin        : 10:12:38
   End          : 10:14:34