Morphological Image Library : Smil vs scikit-image

On taurus

Image metal - 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:20:17 AM
Image    : metal.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.121       0.010       2.113       2.143 - (ms)
  2.0 -    512  1 -       6.486       0.007       6.475       6.497 - (ms)
  4.0 -   1024  1 -      23.878       0.012      23.865      23.897 - (ms)
  8.0 -   2048  1 -      93.307       0.127      93.229      93.612 - (ms)
 16.0 -   4096  1 -     374.044       1.726     372.649     377.779 - (ms)
 32.0 -   8192  1 -    1491.993      36.525    1460.658    1579.435 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.756       0.000       0.755       0.757 - (ms)
  2.0 -    512  1 -       3.277       0.001       3.273       3.279 - (ms)
  4.0 -   1024  1 -      15.469       0.003      15.465      15.475 - (ms)
  8.0 -   2048  1 -      90.030       0.045      89.965      90.103 - (ms)
 16.0 -   4096  1 -     343.881       0.254     343.491     344.211 - (ms)
 32.0 -   8192  1 -    1379.308       3.135    1375.284    1383.673 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       2.121 |       0.756 |          0.356 -0.448
    512 |       6.486 |       3.277 |          0.505 -0.297
   1024 |      23.878 |      15.469 |          0.648 -0.189
   2048 |      93.307 |      90.030 |          0.965 -0.016
   4096 |     374.044 |     343.881 |          0.919 -0.037
   8192 |    1491.993 |    1379.308 |          0.924 -0.034

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

* Elapsed time : 100.9 s

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

=> Elapsed time : 102 secs
   Begin        : 10:20:16
   End          : 10:21:58