Morphological Image Library : Smil vs scikit-image

On taurus

Image alumine - 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:05:07 AM
Image    : alumine.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 -       4.345       0.015       4.333       4.379 - (ms)
  2.0 -    512  1 -      15.070       0.015      15.061      15.105 - (ms)
  4.0 -   1024  1 -      57.836       0.208      57.714      58.324 - (ms)
  8.0 -   2048  1 -     229.489       2.678     227.857     235.847 - (ms)
 16.0 -   4096  1 -     896.323       0.766     895.585     897.862 - (ms)
 32.0 -   8192  1 -    3625.597      14.717    3602.710    3640.493 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.331       0.001       1.330       1.332 - (ms)
  2.0 -    512  1 -       5.836       0.001       5.835       5.839 - (ms)
  4.0 -   1024  1 -      24.618       0.154      24.520      24.963 - (ms)
  8.0 -   2048  1 -     144.893       0.543     144.599     146.218 - (ms)
 16.0 -   4096  1 -     498.120       5.052     495.203     510.325 - (ms)
 32.0 -   8192  1 -    1998.803       4.720    1992.280    2006.478 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       4.345 |       1.331 |          0.306 -0.514
    512 |      15.070 |       5.836 |          0.387 -0.412
   1024 |      57.836 |      24.618 |          0.426 -0.371
   2048 |     229.489 |     144.893 |          0.631 -0.200
   4096 |     896.323 |     498.120 |          0.556 -0.255
   8192 |    3625.597 |    1998.803 |          0.551 -0.259

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

* Elapsed time : 131.4 s

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

=> Elapsed time : 132 secs
   Begin        : 10:05:07
   End          : 10:07:19