Morphological Image Library : Smil vs scikit-image

On nestor

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     : 30/07/2021 03:34:02 PM
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 -       1.448       0.001       1.448       1.450 - (ms)
  2.0 -    512  1 -       5.485       0.000       5.485       5.486 - (ms)
  4.0 -   1024  1 -      22.002       0.002      22.000      22.005 - (ms)
  8.0 -   2048  1 -     110.919       0.067     110.877     111.080 - (ms)
 16.0 -   4096  1 -     725.540       6.862     718.336     739.940 - (ms)
 32.0 -   8192  1 -    3040.525       1.525    3038.408    3043.660 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       4.344       0.004       4.336       4.349 - (ms)
  2.0 -    512  1 -      18.281       0.007      18.270      18.295 - (ms)
  4.0 -   1024  1 -      93.298       0.547      92.154      93.740 - (ms)
  8.0 -   2048  1 -     514.388       3.353     506.505     516.357 - (ms)
 16.0 -   4096  1 -    2366.545       7.079    2355.344    2379.942 - (ms)
 32.0 -   8192  1 -   10321.687      17.356   10307.069   10362.062 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.448 |       4.344 |          3.000  0.477
    512 |       5.485 |      18.281 |          3.333  0.523
   1024 |      22.002 |      93.298 |          4.240  0.627
   2048 |     110.919 |     514.388 |          4.638  0.666
   4096 |     725.540 |    2366.545 |          3.262  0.513
   8192 |    3040.525 |   10321.687 |          3.395  0.531

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

* Elapsed time : 249.3 s

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

=> Elapsed time : 250 secs
   Begin        : 15:34:01
   End          : 15:38:11