Morphological Image Library : Smil vs scikit-image

On nestor

Image balls - 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:19:08 PM
Image    : balls.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.640       0.001       1.639       1.642 - (ms)
 2.0 -    512  1 -       5.902       0.001       5.900       5.903 - (ms)
 4.0 -   1024  1 -      22.713       0.007      22.703      22.726 - (ms)
 8.0 -   2048  1 -      91.834       0.026      91.815      91.892 - (ms)
16.0 -   4096  1 -     368.390       0.094     368.284     368.600 - (ms)
32.0 -   8192  1 -    1476.157       0.433    1475.471    1476.738 - (ms)

* skImage

     -   Side SE -        Mean     Std Dev         Min         Max
------------------------------------------------------------------
 1.0 -    256  1 -       0.958       0.001       0.957       0.960 - (ms)
 2.0 -    512  1 -       3.949       0.078       3.868       4.100 - (ms)
 4.0 -   1024  1 -      18.153       0.147      17.884      18.323 - (ms)
 8.0 -   2048  1 -      79.687       0.025      79.639      79.728 - (ms)
16.0 -   4096  1 -     312.018       0.097     311.850     312.135 - (ms)
32.0 -   8192  1 -    1246.989       0.141    1246.790    1247.196 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.640 |       0.958 |          0.584 -0.234
    512 |       5.902 |       3.949 |          0.669 -0.175
   1024 |      22.713 |      18.153 |          0.799 -0.097
   2048 |      91.834 |      79.687 |          0.868 -0.062
   4096 |     368.390 |     312.018 |          0.847 -0.072
   8192 |    1476.157 |    1246.989 |          0.845 -0.073

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

* Elapsed time : 89.2 s

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

=> Elapsed time : 90 secs
   Begin        : 20:19:07
   End          : 20:20:37