Morphological Image Library : Smil vs scikit-image

On nestor

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 03:34:32 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.030       0.000       0.030       0.030 - (ms)
  2.0 -    512  1 -       0.061       0.000       0.061       0.061 - (ms)
  4.0 -   1024  1 -       0.182       0.000       0.182       0.182 - (ms)
  8.0 -   2048  1 -       0.691       0.000       0.691       0.691 - (ms)
 16.0 -   4096  1 -       4.350       0.001       4.348       4.352 - (ms)
 32.0 -   8192  1 -      17.425       0.006      17.413      17.430 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.795       0.000       1.794       1.795 - (ms)
  2.0 -    512  1 -       6.563       0.012       6.558       6.591 - (ms)
  4.0 -   1024  1 -      26.378       0.035      26.360      26.463 - (ms)
  8.0 -   2048  1 -     110.790       0.016     110.775     110.827 - (ms)
 16.0 -   4096  1 -     437.675       0.023     437.650     437.721 - (ms)
 32.0 -   8192  1 -    1750.101       0.091    1749.989    1750.235 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.030 |       1.795 |         59.321  1.773
    512 |       0.061 |       6.563 |        107.982  2.033
   1024 |       0.182 |      26.378 |        144.953  2.161
   2048 |       0.691 |     110.790 |        160.327  2.205
   4096 |       4.350 |     437.675 |        100.605  2.003
   8192 |      17.425 |    1750.101 |        100.435  2.002

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

* Elapsed time : 100.3 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.704       0.000       0.703       0.704 - (ms)
  8.0 -   2048  2 -       1.336       0.001       1.334       1.338 - (ms)
  8.0 -   2048  3 -       1.954       0.000       1.953       1.954 - (ms)
  8.0 -   2048  4 -       2.580       0.002       2.579       2.586 - (ms)
  8.0 -   2048  5 -       3.205       0.003       3.201       3.213 - (ms)
  8.0 -   2048  6 -       3.829       0.003       3.828       3.838 - (ms)
  8.0 -   2048  7 -       4.445       0.002       4.444       4.449 - (ms)
  8.0 -   2048  8 -       5.069       0.002       5.067       5.073 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -     110.866       0.019     110.846     110.903 - (ms)
  8.0 -   2048  2 -     206.641       0.018     206.614     206.665 - (ms)
  8.0 -   2048  3 -     363.458       0.023     363.435     363.507 - (ms)
  8.0 -   2048  4 -     518.391       0.030     518.360     518.442 - (ms)
  8.0 -   2048  5 -     713.100       0.053     713.046     713.221 - (ms)
  8.0 -   2048  6 -     947.043       0.618     946.602     948.473 - (ms)
  8.0 -   2048  7 -    1219.253       0.945    1218.661    1221.530 - (ms)
  8.0 -   2048  8 -    1531.128       0.249    1530.934    1531.727 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.704 |     110.866 |        157.566  2.197
      2 |       1.336 |     206.641 |        154.666  2.189
      3 |       1.954 |     363.458 |        186.018  2.270
      4 |       2.580 |     518.391 |        200.908  2.303
      5 |       3.205 |     713.100 |        222.480  2.347
      6 |       3.829 |     947.043 |        247.316  2.393
      7 |       4.445 |    1219.253 |        274.300  2.438
      8 |       5.069 |    1531.128 |        302.040  2.480

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

* Elapsed time : 138.1 s


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

=> Elapsed time : 239 secs
   Begin        : 15:34:32
   End          : 15:38:31