x = Image(cv2.warpPerspective(np.array(img2.getMatrix()), homo, (eh.rows, 
    eh.cols + 300), np.array(eh), cv.INTER_CUBIC), colorSpace=ColorSpace.RGB
    ).toBGR()
Image stitching SimpleCV: colorspace changes after warping