Morphological Image Library : Smil vs scikit-image

On nestor

Image metal - Type bin - Function thinning


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     : 29/07/2021 10:46:14 PM
Image    : metal.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : thinning
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -      13.454       0.045      13.344      13.478 - (ms)
  2.0 -    512  1 -      56.568       0.056      56.493      56.646 - (ms)
  4.0 -   1024  1 -     364.402       0.229     364.093     364.808 - (ms)
  8.0 -   2048  1 -    3595.990       1.112    3594.698    3598.417 - (ms)
 16.0 -   4096  1 -   29590.520     686.024   29171.851   31250.735 - (ms)
 32.0 -   8192  1 -  233772.788     854.073  232459.852  234879.452 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -      48.001       0.010      47.992      48.022 - (ms)
  2.0 -    512  1 -     362.524       0.026     362.492     362.569 - (ms)
  4.0 -   1024  1 -    2921.086       0.938    2920.382    2923.116 - (ms)
  8.0 -   2048  1 -   23669.928      28.154   23656.152   23738.708 - (ms)
 16.0 -   4096  1 -  188590.189      32.443  188521.076  188622.536 - (ms)
 32.0 -   8192  1 - 1591221.478     947.978 1590466.489 1593497.313 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |      13.454 |      48.001 |          3.568  0.552
    512 |      56.568 |     362.524 |          6.409  0.807
   1024 |     364.402 |    2921.086 |          8.016  0.904
   2048 |    3595.990 |   23669.928 |          6.582  0.818
   4096 |   29590.520 |  188590.189 |          6.373  0.804
   8192 |  233772.788 | 1591221.478 |          6.807  0.833

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

* Elapsed time : 16656.7 s

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

=> Elapsed time : 16657 secs
   Begin        : 22:46:14
   End          : 03:23:51