Morphological Image Library : Smil vs scikit-image

On nestor

Image gruyere - 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     : 26/07/2021 08:26:38 PM
Image    : gruyere.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 -       2.116       0.003       2.114       2.122 - (ms)
 2.0 -    512  1 -       7.480       0.001       7.479       7.481 - (ms)
 4.0 -   1024  1 -      28.780       0.004      28.775      28.785 - (ms)
 8.0 -   2048  1 -     116.060       0.004     116.054     116.068 - (ms)
16.0 -   4096  1 -     465.280       0.049     465.217     465.343 - (ms)
32.0 -   8192  1 -    1876.546       2.131    1874.685    1880.041 - (ms)

* skImage

     -   Side SE -        Mean     Std Dev         Min         Max
------------------------------------------------------------------
 1.0 -    256  1 -       1.098       0.000       1.097       1.098 - (ms)
 2.0 -    512  1 -       4.398       0.007       4.394       4.415 - (ms)
 4.0 -   1024  1 -      20.591       0.013      20.574      20.616 - (ms)
 8.0 -   2048  1 -      87.877       0.045      87.789      87.931 - (ms)
16.0 -   4096  1 -     348.642       0.261     348.205     348.909 - (ms)
32.0 -   8192  1 -    1397.545       0.525    1396.657    1398.093 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       2.116 |       1.098 |          0.519 -0.285
    512 |       7.480 |       4.398 |          0.588 -0.231
   1024 |      28.780 |      20.591 |          0.715 -0.145
   2048 |     116.060 |      87.877 |          0.757 -0.121
   4096 |     465.280 |     348.642 |          0.749 -0.125
   8192 |    1876.546 |    1397.545 |          0.745 -0.128

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

* Elapsed time : 91.1 s

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

=> Elapsed time : 92 secs
   Begin        : 20:26:37
   End          : 20:28:09