Morphological Image Library : Smil vs scikit-image

On nestor

Image gruyere - Type bin - Function distance


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/07/2021 03:25:37 PM
Image    : gruyere.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : distance
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.580       0.001       1.580       1.583 - (ms)
  2.0 -    512  1 -       5.827       0.001       5.826       5.829 - (ms)
  4.0 -   1024  1 -      23.161       0.004      23.157      23.170 - (ms)
  8.0 -   2048  1 -     121.297       0.016     121.274     121.322 - (ms)
 16.0 -   4096  1 -     727.890       0.039     727.803     727.936 - (ms)
 32.0 -   8192  1 -    3045.129       0.167    3044.884    3045.451 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       4.253       0.003       4.249       4.257 - (ms)
  2.0 -    512  1 -      17.318       0.006      17.310      17.329 - (ms)
  4.0 -   1024  1 -      88.460       0.248      88.240      88.975 - (ms)
  8.0 -   2048  1 -     468.446       0.889     467.703     470.570 - (ms)
 16.0 -   4096  1 -    2197.625      20.147    2169.681    2227.183 - (ms)
 32.0 -   8192  1 -    9708.527      14.216    9683.519    9731.976 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       1.580 |       4.253 |          2.691  0.430
    512 |       5.827 |      17.318 |          2.972  0.473
   1024 |      23.161 |      88.460 |          3.819  0.582
   2048 |     121.297 |     468.446 |          3.862  0.587
   4096 |     727.890 |    2197.625 |          3.019  0.480
   8192 |    3045.129 |    9708.527 |          3.188  0.504

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

* Elapsed time : 245.8 s

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

=> Elapsed time : 246 secs
   Begin        : 15:25:37
   End          : 15:29:43