Morphological Image Library : Smil vs scikit-image

On taurus

Image metal - Type bin - Function distance


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:00:12 AM
Image    : metal.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : distance
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       2.257       0.010       2.248       2.278 - (ms)
  2.0 -    512  1 -       7.752       0.015       7.742       7.786 - (ms)
  4.0 -   1024  1 -      30.572       0.022      30.549      30.620 - (ms)
  8.0 -   2048  1 -     144.212       1.474     142.586     146.549 - (ms)
 16.0 -   4096  1 -    1010.871       8.393    1001.082    1022.274 - (ms)
 32.0 -   8192  1 -    6080.884      60.068    5953.031    6155.718 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       4.161       0.010       4.139       4.174 - (ms)
  2.0 -    512  1 -      20.161       0.029      20.120      20.208 - (ms)
  4.0 -   1024  1 -     106.838       0.047     106.780     106.896 - (ms)
  8.0 -   2048  1 -     600.700       4.794     590.382     606.208 - (ms)
 16.0 -   4096  1 -    3667.946      36.303    3615.040    3708.635 - (ms)
 32.0 -   8192  1 -   18221.772     103.797   18130.285   18467.786 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       2.257 |       4.161 |          1.844  0.266
    512 |       7.752 |      20.161 |          2.601  0.415
   1024 |      30.572 |     106.838 |          3.495  0.543
   2048 |     144.212 |     600.700 |          4.165  0.620
   4096 |    1010.871 |    3667.946 |          3.629  0.560
   8192 |    6080.884 |   18221.772 |          2.997  0.477

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

* Elapsed time : 294.0 s

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

=> Elapsed time : 295 secs
   Begin        : 10:00:11
   End          : 10:05:06