Morphological Image Library : Smil vs scikit-image

On nestor

Image metal - Type bin - Function label


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     : 01/09/2021 05:25:36 PM
Image    : metal.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : label
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.636       0.000       0.636       0.636 - (ms)
  2.0 -    512  1 -       2.391       0.000       2.390       2.392 - (ms)
  4.0 -   1024  1 -       9.029       0.002       9.027       9.032 - (ms)
  8.0 -   2048  1 -      40.797       0.016      40.763      40.815 - (ms)
 16.0 -   4096  1 -     163.688       0.027     163.649     163.735 - (ms)
 32.0 -   8192  1 -     667.846       0.164     667.650     668.142 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.383       0.000       0.383       0.383 - (ms)
  2.0 -    512  1 -       1.491       0.001       1.490       1.493 - (ms)
  4.0 -   1024  1 -       9.145       0.008       9.137       9.163 - (ms)
  8.0 -   2048  1 -      35.572       0.013      35.557      35.597 - (ms)
 16.0 -   4096  1 -     138.295       0.084     138.181     138.432 - (ms)
 32.0 -   8192  1 -     543.714       0.232     543.362     544.028 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.636 |       0.383 |          0.602 -0.220
    512 |       2.391 |       1.491 |          0.624 -0.205
   1024 |       9.029 |       9.145 |          1.013  0.006
   2048 |      40.797 |      35.572 |          0.872 -0.060
   4096 |     163.688 |     138.295 |          0.845 -0.073
   8192 |     667.846 |     543.714 |          0.814 -0.089

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

* Elapsed time : 97.0 s

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

=> Elapsed time : 98 secs
   Begin        : 17:25:35
   End          : 17:27:13