2c4db5b8def6e4f6f0666d1d559a531357c7c347,data/imageWrapper.py,ImageWrapper,flip,#ImageWrapper#,38
Before Change
def flip(self):
print("Flipping...")
if self.should_activate():
flipped_image = cv2.flip(self.image, 1)
image_name = self.get_name_path("flip")
cv2.imwrite(image_name, flipped_image)
def rotate(self):
print("Rotating...")
rows, cols, channels = self.image.shape
if self.should_activate():
After Change
def flip(self):
print("Flipping...")
flipped_image = cv2.flip(self.image, 1)
image_name = self.get_name_path("flip")
cv2.imwrite(image_name, flipped_image)
def rotate(self, degrees_rotation=90):
print("Rotating...")
rows, cols, channels = self.image.shape
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: thoughtworksarts/EmoPy
Commit Name: 2c4db5b8def6e4f6f0666d1d559a531357c7c347
Time: 2017-12-19
Author: sweber@thoughtworks.com
File Name: data/imageWrapper.py
Class Name: ImageWrapper
Method Name: flip
Project Name: thoughtworksarts/EmoPy
Commit Name: 2c4db5b8def6e4f6f0666d1d559a531357c7c347
Time: 2017-12-19
Author: sweber@thoughtworks.com
File Name: data/imageWrapper.py
Class Name: ImageWrapper
Method Name: rotate
Project Name: thoughtworksarts/EmoPy
Commit Name: 2c4db5b8def6e4f6f0666d1d559a531357c7c347
Time: 2017-12-19
Author: sweber@thoughtworks.com
File Name: data/imageWrapper.py
Class Name: ImageWrapper
Method Name: add_noise