a059ea8f1f60de1917f3566e6e523bc698777832,imgaug/augmenters/geometric.py,PiecewiseAffine,_get_transformer,#PiecewiseAffine#Any#Any#Any#Any#Any#,2295

Before Change


        // so we use here (half cell height/width to H/W minus half
        // height/width) instead of (0, H/W)

        nb_rows = max(nb_rows, 2)
        nb_cols = max(nb_cols, 2)

        y = np.linspace(0, augmentable_shape[0], nb_rows)
        x = np.linspace(0, augmentable_shape[1], nb_cols)

After Change


        // (1, HW, 2) => (HW, 2) for H=rows, W=cols
        points_src = np.dstack([yy_src.flat, xx_src.flat])[0]

        any_nonzero = np.any(jitter_img > 0)
        if not any_nonzero:
            return None
        else:
            // Without this, jitter gets changed between different augmentables.
            // TODO if left out, only one test failed -- should be more
            jitter_img = np.copy(jitter_img)

            if self.absolute_scale:
                if image_shape[0] > 0:
                    jitter_img[:, 0] = jitter_img[:, 0] / image_shape[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: aleju/imgaug
Commit Name: a059ea8f1f60de1917f3566e6e523bc698777832
Time: 2019-10-14
Author: kontakt@ajung.name
File Name: imgaug/augmenters/geometric.py
Class Name: PiecewiseAffine
Method Name: _get_transformer


Project Name: scikit-image/scikit-image
Commit Name: 9795e24cb5b3b7ffed0ca959a0986b28366908a9
Time: 2017-09-12
Author: peter@goldsborough.me
File Name: skimage/data/generate_shapes.py
Class Name:
Method Name: generate_shapes


Project Name: kengz/SLM-Lab
Commit Name: e7a1635367e7637f316aadc99c4556614a3663e9
Time: 2018-01-25
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: calc_stable_idx