Morphological Image Library : Smil vs scikit-image

On taurus

Image cells - 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:31:23 PM
Image    : cells.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.121       0.003       0.115       0.122 - (ms)
  2.0 -    512  1 -       0.097       0.003       0.092       0.101 - (ms)
  4.0 -   1024  1 -       0.157       0.002       0.154       0.160 - (ms)
  8.0 -   2048  1 -       0.192       0.001       0.191       0.193 - (ms)
 16.0 -   4096  1 -       0.443       0.000       0.443       0.443 - (ms)
 32.0 -   8192  1 -       2.425       0.000       2.424       2.425 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.791       0.073       1.708       1.897 - (ms)
  2.0 -    512  1 -       6.288       0.060       6.249       6.430 - (ms)
  4.0 -   1024  1 -      24.802       0.104      24.647      25.015 - (ms)
  8.0 -   2048  1 -     109.573       0.130     109.362     109.735 - (ms)
 16.0 -   4096  1 -     442.279       1.456     440.989     445.071 - (ms)
 32.0 -   8192  1 -    1763.796       3.004    1759.310    1766.842 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.121 |       1.791 |         14.778  1.170
    512 |       0.097 |       6.288 |         64.577  1.810
   1024 |       0.157 |      24.802 |        158.332  2.200
   2048 |       0.192 |     109.573 |        571.302  2.757
   4096 |       0.443 |     442.279 |        998.951  3.000
   8192 |       2.425 |    1763.796 |        727.382  2.862

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

* Elapsed time : 101.0 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.213       0.006       0.210       0.228 - (ms)
  8.0 -   2048  2 -       0.314       0.002       0.312       0.318 - (ms)
  8.0 -   2048  3 -       0.406       0.003       0.401       0.410 - (ms)
  8.0 -   2048  4 -       0.520       0.006       0.514       0.532 - (ms)
  8.0 -   2048  5 -       0.632       0.007       0.625       0.647 - (ms)
  8.0 -   2048  6 -       0.720       0.002       0.716       0.723 - (ms)
  8.0 -   2048  7 -       0.772       0.006       0.765       0.782 - (ms)
  8.0 -   2048  8 -       0.864       0.006       0.856       0.873 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -     113.708       4.792     109.497     121.226 - (ms)
  8.0 -   2048  2 -     244.584       7.239     231.277     254.100 - (ms)
  8.0 -   2048  3 -     414.731       0.917     413.932     416.647 - (ms)
  8.0 -   2048  4 -     734.947       0.197     734.705     735.340 - (ms)
  8.0 -   2048  5 -    1077.767       3.119    1076.172    1085.357 - (ms)
  8.0 -   2048  6 -    1452.806       0.131    1452.581    1452.973 - (ms)
  8.0 -   2048  7 -    1896.450       2.969    1894.382    1903.423 - (ms)
  8.0 -   2048  8 -    2400.109       0.126    2399.936    2400.301 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.213 |     113.708 |        532.991  2.727
      2 |       0.314 |     244.584 |        778.024  2.891
      3 |       0.406 |     414.731 |       1020.887  3.009
      4 |       0.520 |     734.947 |       1414.537  3.151
      5 |       0.632 |    1077.767 |       1704.807  3.232
      6 |       0.720 |    1452.806 |       2018.225  3.305
      7 |       0.772 |    1896.450 |       2455.527  3.390
      8 |       0.864 |    2400.109 |       2776.576  3.444

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

* Elapsed time : 149.7 s


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

=> Elapsed time : 251 secs
   Begin        : 13:31:22
   End          : 13:35:33