61a0663a45beb2e59f6a549c51d55940c80734e3,niftynet/io/image_as_nibabel.py,,,#,11

Before Change


    // It loads images slightly faster then PIL.
    // Only use scikit-image if installed version is 0.13.0 or newer
    from niftynet.utilities.util_import import require_module
    SKIO = require_module("skimage.io", (0, 13, 0))
    USE_SKIMAGE = True
    tf.logging.info("+++ Using SKIMAGE as Image Loading backend")
except (ImportError, AssertionError):
    tf.logging.info("+++ Using PIL as Image Loading backend")

After Change


from niftynet.utilities.util_import import require_module


EXTERNAL_LOADERS = [
    dict(name="opencv", module="cv2", method="imread", kwargs=dict(flags=-1)),
    dict(name="skimage", module="skimage.io", method="imread", version="0.13"),
    dict(name="pillow", module="PIL.Image", method="open")
]

AVAILABLE_LOADER = OrderedDict()

for loader in EXTERNAL_LOADERS:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: 61a0663a45beb2e59f6a549c51d55940c80734e3
Time: 2018-03-05
Author: rmaplue@ucl.ac.uk
File Name: niftynet/io/image_as_nibabel.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: 7714d8056e64d3f4fa8a4e07ab096a31e7047f55
Time: 2018-01-08
Author: rmaplue@ucl.ac.uk
File Name: niftynet/network/dense_vnet.py
Class Name: DenseVNet
Method Name: __init__


Project Name: wkentaro/labelme
Commit Name: f20a9425698f1ac9b48b622e0140016e9b73601a
Time: 2020-01-09
Author: www.kentaro.wada@gmail.com
File Name: tests/labelme_tests/test_app.py
Class Name:
Method Name: test_MainWindow_annotate_jpg