Morphological Image Library : Smil vs scikit-image

On taurus

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     : 05/08/2021 10:16:39 AM
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 -       3.231       0.009       3.221       3.249 - (ms)
  2.0 -    512  1 -      10.918       0.006      10.913      10.931 - (ms)
  4.0 -   1024  1 -      41.700       0.044      41.670      41.804 - (ms)
  8.0 -   2048  1 -     165.033       0.101     164.917     165.153 - (ms)
 16.0 -   4096  1 -     652.702       9.063     641.952     669.857 - (ms)
 32.0 -   8192  1 -    2713.282      27.626    2663.325    2761.578 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.057       0.001       1.055       1.058 - (ms)
  2.0 -    512  1 -       4.605       0.005       4.602       4.617 - (ms)
  4.0 -   1024  1 -      20.399       0.041      20.377      20.498 - (ms)
  8.0 -   2048  1 -     104.803       0.413     104.520     105.801 - (ms)
 16.0 -   4096  1 -     422.192       0.243     421.868     422.568 - (ms)
 32.0 -   8192  1 -    1699.689       2.321    1697.136    1703.804 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       3.231 |       1.057 |          0.327 -0.485
    512 |      10.918 |       4.605 |          0.422 -0.375
   1024 |      41.700 |      20.399 |          0.489 -0.311
   2048 |     165.033 |     104.803 |          0.635 -0.197
   4096 |     652.702 |     422.192 |          0.647 -0.189
   8192 |    2713.282 |    1699.689 |          0.626 -0.203

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

* Elapsed time : 115.1 s

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

=> Elapsed time : 116 secs
   Begin        : 10:16:38
   End          : 10:18:34