Morphological Image Library : Smil vs scikit-image

On taurus

Image lena - Type gray - Function erode


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 12:51:24 PM
Image    : lena.png
  width  :   256
  height :   256
  depth  :     1
  type   : gray
Function : erode
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.063       0.001       0.062       0.064 - (ms)
  2.0 -    512  1 -       0.048       0.001       0.047       0.050 - (ms)
  4.0 -   1024  1 -       0.080       0.000       0.079       0.081 - (ms)
  8.0 -   2048  1 -       0.111       0.003       0.106       0.115 - (ms)
 16.0 -   4096  1 -       0.258       0.000       0.257       0.259 - (ms)
 32.0 -   8192  1 -       1.508       0.001       1.507       1.509 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.767       0.001       0.766       0.769 - (ms)
  2.0 -    512  1 -       3.076       0.016       3.063       3.112 - (ms)
  4.0 -   1024  1 -      12.162       0.032      12.106      12.211 - (ms)
  8.0 -   2048  1 -      52.431       0.276      52.152      52.872 - (ms)
 16.0 -   4096  1 -     218.466       2.020     216.376     222.752 - (ms)
 32.0 -   8192  1 -     885.338      13.889     874.722     909.831 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.063 |       0.767 |         12.208  1.087
    512 |       0.048 |       3.076 |         64.173  1.807
   1024 |       0.080 |      12.162 |        152.173  2.182
   2048 |       0.111 |      52.431 |        474.124  2.676
   4096 |       0.258 |     218.466 |        847.524  2.928
   8192 |       1.508 |     885.338 |        587.228  2.769

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

* Elapsed time : 97.4 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.097       0.000       0.096       0.098 - (ms)
  8.0 -   2048  2 -       0.135       0.001       0.134       0.136 - (ms)
  8.0 -   2048  3 -       0.171       0.001       0.170       0.172 - (ms)
  8.0 -   2048  4 -       0.226       0.002       0.223       0.228 - (ms)
  8.0 -   2048  5 -       0.269       0.002       0.265       0.270 - (ms)
  8.0 -   2048  6 -       0.284       0.002       0.280       0.288 - (ms)
  8.0 -   2048  7 -       0.339       0.001       0.338       0.340 - (ms)
  8.0 -   2048  8 -       0.378       0.001       0.376       0.380 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -      52.738       0.288      52.393      53.153 - (ms)
  8.0 -   2048  2 -     115.620       0.058     115.513     115.701 - (ms)
  8.0 -   2048  3 -     208.349       0.193     208.245     208.820 - (ms)
  8.0 -   2048  4 -     368.910       0.518     368.522     369.834 - (ms)
  8.0 -   2048  5 -     534.279       0.066     534.212     534.413 - (ms)
  8.0 -   2048  6 -     724.021       0.196     723.839     724.438 - (ms)
  8.0 -   2048  7 -     944.723       0.128     944.552     944.872 - (ms)
  8.0 -   2048  8 -    1197.346       0.221    1197.197    1197.835 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.097 |      52.738 |        546.271  2.737
      2 |       0.135 |     115.620 |        855.158  2.932
      3 |       0.171 |     208.349 |       1215.475  3.085
      4 |       0.226 |     368.910 |       1635.142  3.214
      5 |       0.269 |     534.279 |       1988.272  3.298
      6 |       0.284 |     724.021 |       2550.225  3.407
      7 |       0.339 |     944.723 |       2789.377  3.446
      8 |       0.378 |    1197.346 |       3167.572  3.501

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

* Elapsed time : 133.4 s


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

=> Elapsed time : 232 secs
   Begin        : 12:51:23
   End          : 12:55:15