Morphological Image Library : Smil vs scikit-image

On taurus

Image coffee - Type bin - Function open


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/09/2021 01:35:35 PM
Image    : coffee.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : open
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.116       0.001       0.113       0.117 - (ms)
  2.0 -    512  1 -       0.100       0.000       0.099       0.100 - (ms)
  4.0 -   1024  1 -       0.156       0.001       0.154       0.157 - (ms)
  8.0 -   2048  1 -       0.221       0.001       0.220       0.222 - (ms)
 16.0 -   4096  1 -       0.491       0.000       0.491       0.491 - (ms)
 32.0 -   8192  1 -       2.540       0.046       2.521       2.652 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.566       0.005       1.559       1.573 - (ms)
  2.0 -    512  1 -       6.236       0.016       6.214       6.271 - (ms)
  4.0 -   1024  1 -      24.644       0.037      24.568      24.675 - (ms)
  8.0 -   2048  1 -     108.935       0.171     108.729     109.225 - (ms)
 16.0 -   4096  1 -     443.347       2.884     440.666     450.180 - (ms)
 32.0 -   8192  1 -    1911.947     117.691    1765.008    2064.594 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.116 |       1.566 |         13.501  1.130
    512 |       0.100 |       6.236 |         62.525  1.796
   1024 |       0.156 |      24.644 |        157.986  2.199
   2048 |       0.221 |     108.935 |        494.000  2.694
   4096 |       0.491 |     443.347 |        902.701  2.956
   8192 |       2.540 |    1911.947 |        752.723  2.877

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

* Elapsed time : 99.5 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.224       0.023       0.208       0.262 - (ms)
  8.0 -   2048  2 -       0.320       0.008       0.316       0.339 - (ms)
  8.0 -   2048  3 -       0.418       0.002       0.415       0.420 - (ms)
  8.0 -   2048  4 -       0.516       0.003       0.512       0.519 - (ms)
  8.0 -   2048  5 -       0.616       0.002       0.612       0.620 - (ms)
  8.0 -   2048  6 -       0.717       0.007       0.708       0.731 - (ms)
  8.0 -   2048  7 -       0.818       0.006       0.811       0.829 - (ms)
  8.0 -   2048  8 -       0.914       0.004       0.908       0.919 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -     109.168       0.377     108.656     109.769 - (ms)
  8.0 -   2048  2 -     230.762       0.227     230.518     231.098 - (ms)
  8.0 -   2048  3 -     414.197       0.374     413.826     414.874 - (ms)
  8.0 -   2048  4 -     734.465       0.939     733.327     736.590 - (ms)
  8.0 -   2048  5 -    1075.670       0.166    1075.452    1075.959 - (ms)
  8.0 -   2048  6 -    1451.540       0.106    1451.413    1451.700 - (ms)
  8.0 -   2048  7 -    1893.747       0.179    1893.457    1893.972 - (ms)
  8.0 -   2048  8 -    2497.588     114.251    2399.138    2646.116 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.224 |     109.168 |        488.343  2.689
      2 |       0.320 |     230.762 |        720.952  2.858
      3 |       0.418 |     414.197 |        990.710  2.996
      4 |       0.516 |     734.465 |       1423.964  3.153
      5 |       0.616 |    1075.670 |       1745.464  3.242
      6 |       0.717 |    1451.540 |       2023.736  3.306
      7 |       0.818 |    1893.747 |       2314.560  3.364
      8 |       0.914 |    2497.588 |       2733.138  3.437

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

* Elapsed time : 151.9 s


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

=> Elapsed time : 253 secs
   Begin        : 13:35:34
   End          : 13:39:47