Morphological Image Library : Smil vs scikit-image

On nestor

Image bubbles_gray - 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 02:39:24 PM
Image    : bubbles_gray.png
  width  :   512
  height :   512
  depth  :     1
  type   : gray
Function : erode
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.017       0.000       0.017       0.017 - (ms)
  1.0 -    512  1 -       0.032       0.000       0.032       0.032 - (ms)
  2.0 -   1024  1 -       0.095       0.000       0.095       0.095 - (ms)
  4.0 -   2048  1 -       0.369       0.000       0.369       0.369 - (ms)
  8.0 -   4096  1 -       2.529       0.001       2.528       2.529 - (ms)
 16.0 -   8192  1 -      10.066       0.004      10.060      10.073 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.806       0.000       0.806       0.806 - (ms)
  1.0 -    512  1 -       5.325       0.002       5.323       5.330 - (ms)
  2.0 -   1024  1 -      12.582       0.000      12.581      12.583 - (ms)
  4.0 -   2048  1 -      53.112       0.006      53.102      53.124 - (ms)
  8.0 -   4096  1 -     209.915       0.021     209.892     209.961 - (ms)
 16.0 -   8192  1 -     839.366       0.077     839.268     839.471 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.017 |       0.806 |         48.784  1.688
    512 |       0.032 |       5.325 |        165.416  2.219
   1024 |       0.095 |      12.582 |        132.982  2.124
   2048 |       0.369 |      53.112 |        144.095  2.159
   4096 |       2.529 |     209.915 |         83.009  1.919
   8192 |      10.066 |     839.366 |         83.382  1.921

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

* Elapsed time : 98.4 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -       0.378       0.000       0.377       0.378 - (ms)
  4.0 -   2048  2 -       0.713       0.000       0.713       0.714 - (ms)
  4.0 -   2048  3 -       1.032       0.000       1.032       1.032 - (ms)
  4.0 -   2048  4 -       1.351       0.001       1.351       1.353 - (ms)
  4.0 -   2048  5 -       1.675       0.000       1.674       1.675 - (ms)
  4.0 -   2048  6 -       1.996       0.000       1.995       1.996 - (ms)
  4.0 -   2048  7 -       2.317       0.000       2.316       2.317 - (ms)
  4.0 -   2048  8 -       2.638       0.001       2.637       2.639 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -      53.101       0.006      53.092      53.109 - (ms)
  4.0 -   2048  2 -      96.889       0.191      96.803      97.358 - (ms)
  4.0 -   2048  3 -     169.263       0.010     169.250     169.283 - (ms)
  4.0 -   2048  4 -     238.283       0.023     238.263     238.336 - (ms)
  4.0 -   2048  5 -     325.425       1.458     324.662     328.882 - (ms)
  4.0 -   2048  6 -     428.465       0.020     428.434     428.498 - (ms)
  4.0 -   2048  7 -     549.403       0.025     549.366     549.449 - (ms)
  4.0 -   2048  8 -     687.876       0.042     687.835     687.968 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.378 |      53.101 |        140.651  2.148
      2 |       0.713 |      96.889 |        135.808  2.133
      3 |       1.032 |     169.263 |        164.052  2.215
      4 |       1.351 |     238.283 |        176.320  2.246
      5 |       1.675 |     325.425 |        194.332  2.289
      6 |       1.996 |     428.465 |        214.715  2.332
      7 |       2.317 |     549.403 |        237.156  2.375
      8 |       2.638 |     687.876 |        260.754  2.416

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

* Elapsed time : 130.2 s


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

=> Elapsed time : 229 secs
   Begin        : 14:39:24
   End          : 14:43:13