Morphological Image Library : Smil vs scikit-image

On nestor

Image gruyere - 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 01:54:40 PM
Image    : gruyere.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 -      18.604       0.006      18.596      18.614 - (ms)
  2.0 -    512  1 -      90.187      14.492      79.323     120.869 - (ms)
  4.0 -   1024  1 -     515.537       0.272     515.348     516.187 - (ms)
  8.0 -   2048  1 -    5139.501      46.751    5099.769    5217.007 - (ms)
 16.0 -   4096  1 -   42542.477    1288.158   41829.459   45672.438 - (ms)
 32.0 -   8192  1 -  334368.367     931.673  333828.101  336623.834 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -      61.143       0.012      61.133      61.172 - (ms)
  2.0 -    512  1 -     452.471       0.024     452.434     452.508 - (ms)
  4.0 -   1024  1 -    3560.237       1.634    3556.282    3561.335 - (ms)
  8.0 -   2048  1 -   28669.222      26.687   28655.398   28734.341 - (ms)
 16.0 -   4096  1 -  227768.964      64.905  227678.277  227838.033 - (ms)
 32.0 -   8192  1 - 1919544.147     250.158 1919194.479 1919887.345 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |      18.604 |      61.143 |          3.287  0.517
    512 |      90.187 |     452.471 |          5.017  0.700
   1024 |     515.537 |    3560.237 |          6.906  0.839
   2048 |    5139.501 |   28669.222 |          5.578  0.746
   4096 |   42542.477 |  227768.964 |          5.354  0.729
   8192 |  334368.367 | 1919544.147 |          5.741  0.759

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

* Elapsed time : 20564.9 s

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

=> Elapsed time : 20566 secs
   Begin        : 13:54:39
   End          : 19:37:25