It most certainly does hold! Lets try it. Your example 3D array: formatcompact x = cat(3,eye(3), eye(3), eye(3)) x = x(:,:,1) = 1 0 0 0 1 0 0 0 1 x(:,:,2) = 1 0 0 0 1 0 0 0 1 x(:,:,3) = 1 0 0 0 1 0 0 0 1 ...
import numpy as np if __name__ == '__main__' : # Read source image. im_src = cv2.imread('book2.jpg') # Four corners of the book in source image pts_src = np.array([[141, 131], [480, 159], [493, 630],[64, 601]]) # Read destination image. im_dst = cv2.imread('...