Morphological Image Library : Smil vs scikit-image

On taurus

Image astronaut - Type gray - Function open


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 01:56:43 PM
Image    : astronaut.png
  width  :   512
  height :   512
  depth  :     1
  type   : gray
Function : open
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       0.122       0.001       0.120       0.124 - (ms)
  1.0 -    512  1 -       0.099       0.000       0.099       0.099 - (ms)
  2.0 -   1024  1 -       0.153       0.001       0.152       0.155 - (ms)
  4.0 -   2048  1 -       0.210       0.003       0.207       0.215 - (ms)
  8.0 -   4096  1 -       0.489       0.000       0.489       0.490 - (ms)
 16.0 -   8192  1 -       2.450       0.026       2.421       2.493 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  0.5 -    256  1 -       1.616       0.007       1.609       1.630 - (ms)
  1.0 -    512  1 -       6.226       0.177       6.080       6.517 - (ms)
  2.0 -   1024  1 -      24.763       0.055      24.676      24.869 - (ms)
  4.0 -   2048  1 -     109.381       0.336     108.790     109.863 - (ms)
  8.0 -   4096  1 -     441.649       2.369     440.073     447.352 - (ms)
 16.0 -   8192  1 -    1769.924       2.220    1766.061    1772.578 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.122 |       1.616 |         13.301  1.124
    512 |       0.099 |       6.226 |         62.711  1.797
   1024 |       0.153 |      24.763 |        161.692  2.209
   2048 |       0.210 |     109.381 |        520.307  2.716
   4096 |       0.489 |     441.649 |        903.027  2.956
   8192 |       2.450 |    1769.924 |        722.477  2.859

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

* Elapsed time : 101.5 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -       0.226       0.010       0.218       0.250 - (ms)
  4.0 -   2048  2 -       0.304       0.002       0.302       0.309 - (ms)
  4.0 -   2048  3 -       0.396       0.003       0.390       0.400 - (ms)
  4.0 -   2048  4 -       0.488       0.003       0.484       0.493 - (ms)
  4.0 -   2048  5 -       0.581       0.003       0.575       0.586 - (ms)
  4.0 -   2048  6 -       0.672       0.002       0.669       0.677 - (ms)
  4.0 -   2048  7 -       0.767       0.005       0.761       0.776 - (ms)
  4.0 -   2048  8 -       0.887       0.009       0.878       0.904 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  4.0 -   2048  1 -     109.670       0.553     109.012     110.578 - (ms)
  4.0 -   2048  2 -     230.310       0.884     229.383     232.158 - (ms)
  4.0 -   2048  3 -     414.315       0.244     413.983     414.756 - (ms)
  4.0 -   2048  4 -     734.835       1.261     734.008     737.837 - (ms)
  4.0 -   2048  5 -    1075.517       0.081    1075.401    1075.630 - (ms)
  4.0 -   2048  6 -    1451.083       0.091    1450.917    1451.195 - (ms)
  4.0 -   2048  7 -    1895.134       3.226    1893.302    1902.805 - (ms)
  4.0 -   2048  8 -    2399.229       0.304    2398.902    2399.842 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.226 |     109.670 |        484.861  2.686
      2 |       0.304 |     230.310 |        756.383  2.879
      3 |       0.396 |     414.315 |       1046.636  3.020
      4 |       0.488 |     734.835 |       1507.247  3.178
      5 |       0.581 |    1075.517 |       1852.619  3.268
      6 |       0.672 |    1451.083 |       2159.721  3.334
      7 |       0.767 |    1895.134 |       2470.596  3.393
      8 |       0.887 |    2399.229 |       2706.165  3.432

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

* Elapsed time : 150.6 s


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

=> Elapsed time : 253 secs
   Begin        : 13:56:42
   End          : 14:00:55