437306d52ffad3d00f576abaf785fe8782573223,imgaug/augmentables/bbs.py,BoundingBox,clip_out_of_image,#BoundingBox#Any#,446

Before Change


            Bounding box, clipped to fall within the image dimensions.

        
        if isinstance(image, tuple):
            shape = image
        else:
            shape = image.shape

        height, width = shape[0:2]
        ia.do_assert(height > 0)
        ia.do_assert(width > 0)

After Change


            Bounding box, clipped to fall within the image dimensions.

        
        shape = _parse_shape(image)

        height, width = shape[0:2]
        ia.do_assert(height > 0)
        ia.do_assert(width > 0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: aleju/imgaug
Commit Name: 437306d52ffad3d00f576abaf785fe8782573223
Time: 2019-03-31
Author: kontakt@ajung.name
File Name: imgaug/augmentables/bbs.py
Class Name: BoundingBox
Method Name: clip_out_of_image


Project Name: aleju/imgaug
Commit Name: 437306d52ffad3d00f576abaf785fe8782573223
Time: 2019-03-31
Author: kontakt@ajung.name
File Name: imgaug/augmentables/bbs.py
Class Name: BoundingBox
Method Name: is_partly_within_image


Project Name: aleju/imgaug
Commit Name: 437306d52ffad3d00f576abaf785fe8782573223
Time: 2019-03-31
Author: kontakt@ajung.name
File Name: imgaug/augmentables/bbs.py
Class Name: BoundingBox
Method Name: is_fully_within_image