xxxxxxxxxx
- Scaling:
- reshaping image
- Enlarging / shrinking image
- Stretching image vertically / horizontally
- Translation
- Shifting image vertically / horizontally / diagnally
- Rotation
- Rotate the image by a degree of theta
xxxxxxxxxx
import cv2
import imutils
image = cv2.imread("image1.jpeg")
cv2.imshow('Original', image)
rot = imutils.rotate(image, angle=45)
cv2.imshow("Rotated", rot)
cv2.waitKey(0)
xxxxxxxxxx
/**
* @param {number[][]} matrix
* @return {void} Do not return anything, modify matrix in-place instead.
*/
var rotate = function(matrix) {
};
xxxxxxxxxx
# @param {Integer[][]} matrix
# @return {Void} Do not return anything, modify matrix in-place instead.
def rotate(matrix)
end
xxxxxxxxxx
class Solution {
/**
* @param Integer[][] $matrix
* @return NULL
*/
function rotate(&$matrix) {
}
}