cdfb82f97bc9276933e2fae24943969f1eb48847,skvideo/motion/gme.py,,globalEdgeMotion,#,28

Before Change


    if frame1.shape[3] == 3:
        frame1 = rgb2gray(frame1)
    if frame2.shape[3] == 3:
        frame2 = rgb2gray(frame2)
    frame1 = frame1[0, ..., 0]
    frame2 = frame2[0, ..., 0]

    if frame1.dtype != np.bool:

After Change


    
    assert(frame1.shape == frame2.shape)

    T, M, N, C = frame1.shape

    assert C == 1, "called with frames having %d channels. Please supply only the luminance channel." % (C,)
    // if type bool, then these are edge maps. No need to convert them
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-video/scikit-video
Commit Name: cdfb82f97bc9276933e2fae24943969f1eb48847
Time: 2018-04-17
Author: sglidq625@gmail.com
File Name: skvideo/motion/gme.py
Class Name:
Method Name: globalEdgeMotion


Project Name: scikit-image/scikit-image
Commit Name: 8acad22ff31d44b17651003db49791640d9b0b41
Time: 2021-01-21
Author: charlie_cha@outlook.com
File Name: skimage/color/colorlabel.py
Class Name:
Method Name: _label2rgb_overlay


Project Name: scikit-video/scikit-video
Commit Name: 01b2c738910f6080119029d1de100fb3d0e11118
Time: 2017-09-01
Author: tgoodall@utexas.edu
File Name: skvideo/measure/scene.py
Class Name:
Method Name: _scenedet_histogram