Morphological Image Library : Smil vs scikit-image

On taurus

Image lena - Type gray - 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 02:09:27 PM
Image    : lena.png
  width  :   256
  height :   256
  depth  :     1
  type   : gray
Function : open
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.121       0.000       0.120       0.121 - (ms)
  2.0 -    512  1 -       0.091       0.001       0.090       0.093 - (ms)
  4.0 -   1024  1 -       0.143       0.001       0.142       0.144 - (ms)
  8.0 -   2048  1 -       0.187       0.000       0.187       0.187 - (ms)
 16.0 -   4096  1 -       0.476       0.000       0.476       0.477 - (ms)
 32.0 -   8192  1 -       2.763       0.036       2.698       2.791 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.599       0.008       1.586       1.610 - (ms)
  2.0 -    512  1 -       6.247       0.022       6.221       6.284 - (ms)
  4.0 -   1024  1 -      24.897       0.101      24.781      25.098 - (ms)
  8.0 -   2048  1 -     109.399       0.424     108.885     110.178 - (ms)
 16.0 -   4096  1 -     441.105       1.066     439.074     442.122 - (ms)
 32.0 -   8192  1 -    1769.619       6.049    1760.227    1780.145 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.121 |       1.599 |         13.216  1.121
    512 |       0.091 |       6.247 |         68.372  1.835
   1024 |       0.143 |      24.897 |        174.115  2.241
   2048 |       0.187 |     109.399 |        585.094  2.767
   4096 |       0.476 |     441.105 |        926.358  2.967
   8192 |       2.763 |    1769.619 |        640.472  2.806

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

* Elapsed time : 100.4 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.194       0.005       0.191       0.206 - (ms)
  8.0 -   2048  2 -       0.308       0.012       0.288       0.317 - (ms)
  8.0 -   2048  3 -       0.377       0.001       0.375       0.378 - (ms)
  8.0 -   2048  4 -       0.461       0.001       0.460       0.462 - (ms)
  8.0 -   2048  5 -       0.550       0.003       0.544       0.554 - (ms)
  8.0 -   2048  6 -       0.642       0.002       0.639       0.644 - (ms)
  8.0 -   2048  7 -       0.728       0.003       0.723       0.733 - (ms)
  8.0 -   2048  8 -       0.817       0.004       0.811       0.822 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -     115.805       0.410     115.411     116.339 - (ms)
  8.0 -   2048  2 -     231.145       1.667     230.078     235.193 - (ms)
  8.0 -   2048  3 -     415.088       0.470     414.731     415.952 - (ms)
  8.0 -   2048  4 -     736.054       1.557     734.551     738.605 - (ms)
  8.0 -   2048  5 -    1077.579       3.157    1075.858    1085.154 - (ms)
  8.0 -   2048  6 -    1453.359       2.862    1451.587    1459.612 - (ms)
  8.0 -   2048  7 -    1894.830       1.926    1893.761    1899.533 - (ms)
  8.0 -   2048  8 -    2399.535       0.129    2399.319    2399.765 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.194 |     115.805 |        597.580  2.776
      2 |       0.308 |     231.145 |        750.530  2.875
      3 |       0.377 |     415.088 |       1099.893  3.041
      4 |       0.461 |     736.054 |       1595.414  3.203
      5 |       0.550 |    1077.579 |       1957.481  3.292
      6 |       0.642 |    1453.359 |       2262.792  3.355
      7 |       0.728 |    1894.830 |       2604.451  3.416
      8 |       0.817 |    2399.535 |       2936.956  3.468

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

* Elapsed time : 151.6 s


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

=> Elapsed time : 253 secs
   Begin        : 14:09:27
   End          : 14:13:40