Morphological Image Library : Smil vs scikit-image

On nestor

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 02:08:51 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.016       0.000       0.016       0.016 - (ms)
  1.0 -    512  1 -       0.032       0.000       0.032       0.032 - (ms)
  2.0 -   1024  1 -       0.094       0.000       0.094       0.094 - (ms)
  4.0 -   2048  1 -       0.367       0.000       0.367       0.368 - (ms)
  8.0 -   4096  1 -       2.529       0.000       2.528       2.530 - (ms)
 16.0 -   8192  1 -      10.017       0.004      10.011      10.023 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.807       0.000       0.807       0.807 - (ms)
  1.0 -    512  1 -       3.651       0.001       3.651       3.653 - (ms)
  2.0 -   1024  1 -      12.594       0.002      12.592      12.599 - (ms)
  4.0 -   2048  1 -      53.139       0.005      53.134      53.149 - (ms)
  8.0 -   4096  1 -     209.899       0.012     209.879     209.922 - (ms)
 16.0 -   8192  1 -     839.010       0.192     838.790     839.347 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.016 |       0.807 |         48.913  1.689
    512 |       0.032 |       3.651 |        114.345  2.058
   1024 |       0.094 |      12.594 |        133.320  2.125
   2048 |       0.367 |      53.139 |        144.607  2.160
   4096 |       2.529 |     209.899 |         83.002  1.919
   8192 |      10.017 |     839.010 |         83.762  1.923

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

* Elapsed time : 97.6 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -       0.364       0.000       0.364       0.365 - (ms)
  4.0 -   2048  2 -       0.689       0.000       0.689       0.690 - (ms)
  4.0 -   2048  3 -       1.016       0.000       1.015       1.017 - (ms)
  4.0 -   2048  4 -       1.337       0.000       1.336       1.337 - (ms)
  4.0 -   2048  5 -       1.659       0.000       1.659       1.659 - (ms)
  4.0 -   2048  6 -       1.983       0.000       1.983       1.983 - (ms)
  4.0 -   2048  7 -       2.303       0.000       2.302       2.303 - (ms)
  4.0 -   2048  8 -       2.624       0.000       2.624       2.624 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -      53.138       0.003      53.134      53.143 - (ms)
  4.0 -   2048  2 -      96.838       0.009      96.826      96.850 - (ms)
  4.0 -   2048  3 -     169.240       0.023     169.215     169.281 - (ms)
  4.0 -   2048  4 -     238.243       0.060     238.200     238.388 - (ms)
  4.0 -   2048  5 -     324.738       0.017     324.719     324.774 - (ms)
  4.0 -   2048  6 -     428.546       0.048     428.489     428.636 - (ms)
  4.0 -   2048  7 -     549.470       0.033     549.429     549.513 - (ms)
  4.0 -   2048  8 -     690.333       3.865     687.972     698.811 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.364 |      53.138 |        145.854  2.164
      2 |       0.689 |      96.838 |        140.478  2.148
      3 |       1.016 |     169.240 |        166.597  2.222
      4 |       1.337 |     238.243 |        178.234  2.251
      5 |       1.659 |     324.738 |        195.741  2.292
      6 |       1.983 |     428.546 |        216.097  2.335
      7 |       2.303 |     549.470 |        238.626  2.378
      8 |       2.624 |     690.333 |        263.077  2.420

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

* Elapsed time : 130.0 s


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

=> Elapsed time : 229 secs
   Begin        : 14:08:50
   End          : 14:12:39