Hi there, I’m the founder of Pysource.
I’m a Computer Vision Consultant, developer and Course instructor.
I help Companies and Developers to build efficient computer vision software.
2 comments
I got a information about warpAffine method. But I want to know one more about warpAffine .
M = np.float32([[1,0,25],[0,1,10]]) # This line is passed to warpAffine method. But in your video, you have explained another way. can you tell me what is the difference between this line and your method in your code?
shifted = cv2.warpAffine(pic, M, (cols,rows))
cv2.imshow(‘shifted’,shifted)
I got a information about warpAffine method. But I want to know one more about warpAffine .
import cv2
import numpy as np
pic = cv2.imread(‘image.jpeg’)
print(pic.shape)
cols = pic.shape[1]
rows = pic.shape[0]
M = np.float32([[1,0,25],[0,1,10]]) # This line is passed to warpAffine method. But in your video, you have explained another way. can you tell me what is the difference between this line and your method in your code?
shifted = cv2.warpAffine(pic, M, (cols,rows))
cv2.imshow(‘shifted’,shifted)
cv2.waitKey(0)
cv2.destroyAllWindows()
What if i want to translate back from the result to the original image ?