Morphological Image Library : Smil vs scikit-image

On taurus

Image coffee - 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:20:23 PM
Image    : coffee.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : erode
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.060       0.001       0.058       0.060 - (ms)
  2.0 -    512  1 -       0.048       0.000       0.047       0.048 - (ms)
  4.0 -   1024  1 -       0.077       0.001       0.076       0.078 - (ms)
  8.0 -   2048  1 -       0.108       0.000       0.108       0.108 - (ms)
 16.0 -   4096  1 -       0.229       0.001       0.228       0.230 - (ms)
 32.0 -   8192  1 -       1.501       0.001       1.500       1.503 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.777       0.019       0.763       0.822 - (ms)
  2.0 -    512  1 -       3.088       0.004       3.080       3.093 - (ms)
  4.0 -   1024  1 -      12.174       0.022      12.140      12.214 - (ms)
  8.0 -   2048  1 -      53.181       0.196      52.941      53.565 - (ms)
 16.0 -   4096  1 -     216.964       3.136     213.380     222.450 - (ms)
 32.0 -   8192  1 -     879.926       1.340     877.482     881.358 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.060 |       0.777 |         13.045  1.115
    512 |       0.048 |       3.088 |         64.673  1.811
   1024 |       0.077 |      12.174 |        157.716  2.198
   2048 |       0.108 |      53.181 |        492.702  2.693
   4096 |       0.229 |     216.964 |        949.175  2.977
   8192 |       1.501 |     879.926 |        586.118  2.768

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

* Elapsed time : 97.2 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.107       0.001       0.106       0.109 - (ms)
  8.0 -   2048  2 -       0.157       0.001       0.156       0.158 - (ms)
  8.0 -   2048  3 -       0.210       0.003       0.204       0.216 - (ms)
  8.0 -   2048  4 -       0.256       0.001       0.254       0.257 - (ms)
  8.0 -   2048  5 -       0.318       0.023       0.304       0.373 - (ms)
  8.0 -   2048  6 -       0.363       0.001       0.360       0.364 - (ms)
  8.0 -   2048  7 -       0.417       0.002       0.414       0.419 - (ms)
  8.0 -   2048  8 -       0.465       0.003       0.462       0.472 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -      55.397       0.227      55.159      55.903 - (ms)
  8.0 -   2048  2 -     116.689       2.344     115.321     122.123 - (ms)
  8.0 -   2048  3 -     208.258       0.039     208.215     208.322 - (ms)
  8.0 -   2048  4 -     368.714       0.102     368.578     368.857 - (ms)
  8.0 -   2048  5 -     535.318       1.370     534.460     538.392 - (ms)
  8.0 -   2048  6 -     726.783       1.568     724.267     729.630 - (ms)
  8.0 -   2048  7 -     947.248       2.348     944.796     950.366 - (ms)
  8.0 -   2048  8 -    1275.287      57.450    1197.631    1329.458 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.107 |      55.397 |        516.488  2.713
      2 |       0.157 |     116.689 |        743.277  2.871
      3 |       0.210 |     208.258 |        993.783  2.997
      4 |       0.256 |     368.714 |       1442.883  3.159
      5 |       0.318 |     535.318 |       1682.453  3.226
      6 |       0.363 |     726.783 |       2001.734  3.301
      7 |       0.417 |     947.248 |       2274.142  3.357
      8 |       0.465 |    1275.287 |       2741.612  3.438

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

* Elapsed time : 133.1 s


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

=> Elapsed time : 231 secs
   Begin        : 12:20:23
   End          : 12:24:14