'Args:
max_deg, interp, step_deg: same as :class:`Rotation`'

def __init__(self, max_deg, interp=cv2.INTER_LINEAR, step_deg=None):

    assert ((step_deg is None) or ((max_deg == 180) and ((max_deg % step_deg) == 0)))
    super(RotationAndCropValid, self).__init__()
    self._init(locals())
