Morphological Image Library : Smil vs scikit-image

On taurus

Image bubbles_bin - Type bin - 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:12:41 PM
Image    : bubbles_bin.png
  width  :   512
  height :   512
  depth  :     1
  type   : binary
Function : erode
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.059       0.000       0.059       0.060 - (ms)
  1.0 -    512  1 -       0.050       0.000       0.049       0.050 - (ms)
  2.0 -   1024  1 -       0.079       0.000       0.079       0.080 - (ms)
  4.0 -   2048  1 -       0.107       0.001       0.106       0.108 - (ms)
  8.0 -   4096  1 -       0.261       0.001       0.261       0.263 - (ms)
 16.0 -   8192  1 -       1.487       0.001       1.486       1.488 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.794       0.004       0.789       0.799 - (ms)
  1.0 -    512  1 -       2.988       0.012       2.971       3.011 - (ms)
  2.0 -   1024  1 -      12.089       0.036      12.015      12.134 - (ms)
  4.0 -   2048  1 -      54.169       0.243      53.700      54.479 - (ms)
  8.0 -   4096  1 -     218.836       0.556     217.849     219.542 - (ms)
 16.0 -   8192  1 -     882.598       0.709     881.484     883.466 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.059 |       0.794 |         13.350  1.125
    512 |       0.050 |       2.988 |         60.291  1.780
   1024 |       0.079 |      12.089 |        152.136  2.182
   2048 |       0.107 |      54.169 |        505.892  2.704
   4096 |       0.261 |     218.836 |        837.129  2.923
   8192 |       1.487 |     882.598 |        593.601  2.773

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

* Elapsed time : 97.4 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -       0.116       0.007       0.113       0.134 - (ms)
  4.0 -   2048  2 -       0.159       0.000       0.159       0.160 - (ms)
  4.0 -   2048  3 -       0.218       0.000       0.217       0.218 - (ms)
  4.0 -   2048  4 -       0.256       0.001       0.256       0.257 - (ms)
  4.0 -   2048  5 -       0.306       0.003       0.304       0.313 - (ms)
  4.0 -   2048  6 -       0.374       0.000       0.374       0.375 - (ms)
  4.0 -   2048  7 -       0.400       0.002       0.399       0.404 - (ms)
  4.0 -   2048  8 -       0.449       0.002       0.447       0.452 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -      53.783       0.504      53.369      54.615 - (ms)
  4.0 -   2048  2 -     116.293       0.214     115.852     116.577 - (ms)
  4.0 -   2048  3 -     212.309       5.178     209.103     222.719 - (ms)
  4.0 -   2048  4 -     377.463      10.502     369.257     393.581 - (ms)
  4.0 -   2048  5 -     535.139       0.090     535.040     535.279 - (ms)
  4.0 -   2048  6 -     724.671       0.106     724.539     724.827 - (ms)
  4.0 -   2048  7 -     945.483       0.068     945.395     945.585 - (ms)
  4.0 -   2048  8 -    1199.583       3.301    1197.974    1207.606 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.116 |      53.783 |        462.209  2.665
      2 |       0.159 |     116.293 |        729.942  2.863
      3 |       0.218 |     212.309 |        974.950  2.989
      4 |       0.256 |     377.463 |       1472.306  3.168
      5 |       0.306 |     535.139 |       1749.494  3.243
      6 |       0.374 |     724.671 |       1937.022  3.287
      7 |       0.400 |     945.483 |       2361.390  3.373
      8 |       0.449 |    1199.583 |       2672.625  3.427

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

* Elapsed time : 132.7 s


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

=> Elapsed time : 231 secs
   Begin        : 12:12:40
   End          : 12:16:31