Morphological Image Library : Smil vs scikit-image

On nestor

Image cells - Type bin - 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 03:30:30 PM
Image    : cells.png
  width  :   256
  height :   256
  depth  :     1
  type   : binary
Function : open
  repeat :     7


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

                       *** Image size ***                       

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       0.030       0.000       0.030       0.030 - (ms)
  2.0 -    512  1 -       0.061       0.000       0.061       0.061 - (ms)
  4.0 -   1024  1 -       0.183       0.000       0.183       0.183 - (ms)
  8.0 -   2048  1 -       0.697       0.000       0.697       0.697 - (ms)
 16.0 -   4096  1 -       4.351       0.001       4.349       4.352 - (ms)
 32.0 -   8192  1 -      17.452       0.004      17.443      17.459 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  1.0 -    256  1 -       1.763       0.001       1.762       1.767 - (ms)
  2.0 -    512  1 -       6.566       0.009       6.560       6.586 - (ms)
  4.0 -   1024  1 -      26.273       0.001      26.270      26.274 - (ms)
  8.0 -   2048  1 -     110.609       0.007     110.599     110.618 - (ms)
 16.0 -   4096  1 -     436.848       0.006     436.837     436.856 - (ms)
 32.0 -   8192  1 -    1743.645       0.191    1743.425    1743.999 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
    256 |       0.030 |       1.763 |         58.313  1.766
    512 |       0.061 |       6.566 |        107.825  2.033
   1024 |       0.183 |      26.273 |        143.316  2.156
   2048 |       0.697 |     110.609 |        158.752  2.201
   4096 |       4.351 |     436.848 |        100.412  2.002
   8192 |      17.452 |    1743.645 |         99.914  2.000

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

* Elapsed time : 101.2 s

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

                *** Structuring element size ***                

* Smil

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -       0.695       0.000       0.695       0.695 - (ms)
  8.0 -   2048  2 -       1.317       0.000       1.316       1.317 - (ms)
  8.0 -   2048  3 -       1.942       0.004       1.937       1.948 - (ms)
  8.0 -   2048  4 -       2.712       0.231       2.577       3.234 - (ms)
  8.0 -   2048  5 -       3.209       0.000       3.209       3.210 - (ms)
  8.0 -   2048  6 -       3.843       0.021       3.818       3.884 - (ms)
  8.0 -   2048  7 -       4.443       0.008       4.434       4.451 - (ms)
  8.0 -   2048  8 -       5.092       0.060       5.056       5.237 - (ms)

* skImage

      -   Side SE -        Mean     Std Dev         Min         Max
-------------------------------------------------------------------
  8.0 -   2048  1 -     110.604       0.008     110.596     110.623 - (ms)
  8.0 -   2048  2 -     206.549       0.026     206.527     206.608 - (ms)
  8.0 -   2048  3 -     363.219       0.016     363.193     363.245 - (ms)
  8.0 -   2048  4 -     518.547       0.098     518.490     518.785 - (ms)
  8.0 -   2048  5 -     713.577       1.472     712.830     717.138 - (ms)
  8.0 -   2048  6 -     946.266       0.023     946.234     946.298 - (ms)
  8.0 -   2048  7 -    1218.522       0.075    1218.444    1218.674 - (ms)
  8.0 -   2048  8 -    1530.876       0.138    1530.748    1531.181 - (ms)

* Speed-up : (dt_skimage / dt_Smil)

        |     T(Smil) |  T(skImage) | T(skImage)/T(Smil) [*]
---------------------------------------------------------------
      1 |       0.695 |     110.604 |        159.203  2.202
      2 |       1.317 |     206.549 |        156.857  2.196
      3 |       1.942 |     363.219 |        187.017  2.272
      4 |       2.712 |     518.547 |        191.239  2.282
      5 |       3.209 |     713.577 |        222.357  2.347
      6 |       3.843 |     946.266 |        246.207  2.391
      7 |       4.443 |    1218.522 |        274.245  2.438
      8 |       5.092 |    1530.876 |        300.649  2.478

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

* Elapsed time : 139.3 s


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

=> Elapsed time : 241 secs
   Begin        : 15:30:30
   End          : 15:34:31