Morphological Image Library : Smil vs scikit-image

On nestor

Image metal - Type bin - Function fastLabel


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     : 25/08/2021 12:46:15 PM
Image    : metal.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : fastLabel
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.421       0.013       1.407       1.448 - (ms)
  2.0 -    512  1 -       4.265       0.113       4.049       4.434 - (ms)
  4.0 -   1024  1 -      15.708       0.875      13.764      16.458 - (ms)
  8.0 -   2048  1 -      53.673       1.192      50.965      54.725 - (ms)
 16.0 -   4096  1 -     189.568       0.546     188.893     190.537 - (ms)
 32.0 -   8192  1 -     729.441       0.702     728.793     730.936 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.382       0.000       0.382       0.382 - (ms)
  2.0 -    512  1 -       1.499       0.001       1.498       1.500 - (ms)
  4.0 -   1024  1 -       7.247       0.004       7.240       7.253 - (ms)
  8.0 -   2048  1 -      35.521       0.035      35.474      35.591 - (ms)
 16.0 -   4096  1 -     137.487       0.024     137.453     137.520 - (ms)
 32.0 -   8192  1 -     540.600       0.481     539.849     541.306 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.421 |       0.382 |          0.269 -0.571
    512 |       4.265 |       1.499 |          0.351 -0.454
   1024 |      15.708 |       7.247 |          0.461 -0.336
   2048 |      53.673 |      35.521 |          0.662 -0.179
   4096 |     189.568 |     137.487 |          0.725 -0.140
   8192 |     729.441 |     540.600 |          0.741 -0.130

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

* Elapsed time : 97.7 s

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

=> Elapsed time : 99 secs
   Begin        : 12:46:14
   End          : 12:47:53