6c3a117b9b39fd7f993c85091f7a1a0d96d10d08,datasets/KITTI.py,,load_flow_from_png,#,16

Before Change




def load_flow_from_png(png_path):
    return(imread(png_path)[:,:,0:2].astype(float) - 128)


def make_dataset(dir, split, occ=True):
    """Will search in training folder for folders "flow_noc" or "flow_occ" and "colored_0" (KITTI 2012) or "image_2" (KITTI 2015) """

After Change



def load_flow_from_png(png_path):
    flo_file = cv2.imread(png_path,cv2.IMREAD_UNCHANGED)
    flo_img = flo_file[:,:,1::-1].astype(np.float32)
    invalid = (flo_file[:,:,2] == 0)
    flo_img = flo_img - 32768
    flo_img = flo_img / 64
    flo_img[invalid, :] = np.NaN
    return(flo_img)


def make_dataset(dir, split, occ=True):
    """Will search in training folder for folders "flow_noc" or "flow_occ" and "colored_0" (KITTI 2012) or "image_2" (KITTI 2015) """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 6c3a117b9b39fd7f993c85091f7a1a0d96d10d08
Time: 2018-01-29
Author: clement.pinard@parrot.com
File Name: datasets/KITTI.py
Class Name:
Method Name: load_flow_from_png


Project Name: scikit-image/scikit-image
Commit Name: b8a5e5db6c2c0ff9540d84c11c05b21fc6023ae6
Time: 2020-05-04
Author: rfezzani@gmail.com
File Name: skimage/color/colorconv.py
Class Name:
Method Name: rgb2xyz


Project Name: Shmuma/ptan
Commit Name: 8ac327667161ae6e2c37f88ff3782e6591c19b48
Time: 2017-10-08
Author: max.lapan@gmail.com
File Name: ptan/common/wrappers.py
Class Name: PreprocessImage
Method Name: _observation