# -*- coding: utf-8 -*-
"""
"""

import numpy as np
import cv2

def rotateImage(image, angle):
  image_center = tuple(np.array(image.shape)/2)
  rot_mat = cv2.getRotationMatrix2D(image_center,angle, 1.0)
  result = cv2.warpAffine(image, rot_mat, image.shape,flags=cv2.INTER_LINEAR)
  return result
  
def max_img(a):
    return max(a.ravel())