Morphological Image Library : Smil vs scikit-image

On nestor

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     : 26/07/2021 08:23:28 PM
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 -       2.191       0.004       2.187       2.200 - (ms)
 2.0 -    512  1 -       7.634       0.001       7.633       7.636 - (ms)
 4.0 -   1024  1 -      29.187       0.016      29.176      29.224 - (ms)
 8.0 -   2048  1 -     117.221       0.010     117.204     117.232 - (ms)
16.0 -   4096  1 -     470.500       0.035     470.464     470.565 - (ms)
32.0 -   8192  1 -    1900.383       0.915    1899.398    1902.082 - (ms)

* skImage

     -   Side SE -        Mean     Std Dev         Min         Max
------------------------------------------------------------------
 1.0 -    256  1 -       1.112       0.000       1.112       1.113 - (ms)
 2.0 -    512  1 -       4.407       0.001       4.407       4.408 - (ms)
 4.0 -   1024  1 -      20.079       0.008      20.063      20.089 - (ms)
 8.0 -   2048  1 -      89.305       0.069      89.199      89.404 - (ms)
16.0 -   4096  1 -     350.761       0.392     350.060     351.225 - (ms)
32.0 -   8192  1 -    1402.645       1.198    1400.167    1403.884 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       2.191 |       1.112 |          0.508 -0.294
    512 |       7.634 |       4.407 |          0.577 -0.239
   1024 |      29.187 |      20.079 |          0.688 -0.162
   2048 |     117.221 |      89.305 |          0.762 -0.118
   4096 |     470.500 |     350.761 |          0.746 -0.128
   8192 |    1900.383 |    1402.645 |          0.738 -0.132

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

* Elapsed time : 92.0 s

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

=> Elapsed time : 93 secs
   Begin        : 20:23:27
   End          : 20:25:00