rotate
import { rotate } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Rotates a 2D array in multiples of 90 degrees. The function cv::rotate rotates the array in one of three different ways: Rotate by 90 degrees clockwise (rotateCode = ROTATE_90_CLOCKWISE). Rotate by 180 degrees clockwise (rotateCode = ROTATE_180). Rotate by 270 degrees clockwise (rotateCode = ROTATE_90_COUNTERCLOCKWISE).
See: transpose, repeat, completeSymm, flip, RotateFlags
rotate(src: Mat, dst: Mat, rotateCode: number): void;srcinput array.
dstOutput destination, filled by the native operation. output array of the same type as src. The size is the same with ROTATE_180, and the rows and cols are switched for ROTATE_90_CLOCKWISE and ROTATE_90_COUNTERCLOCKWISE.
rotateCodean enum to specify how to rotate the array; see the enum #RotateFlags
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.