vImageGetPerspectiveWarp(_:_:_:_:)
Returns a projective-transformation structure that defines the mapping between a source quadrilateral and a destination quadrilateral.
Declaration
func vImageGetPerspectiveWarp(_ srcPoints: UnsafePointer<(Float, Float)>, _ destPoints: UnsafePointer<(Float, Float)>, _ transform: UnsafeMutablePointer<vImage_PerpsectiveTransform>, _ flags: vImage_Flags) -> vImage_ErrorParameters
- srcPoints:
The four source points.
- destPoints:
The four destination points.
- transform:
On output, a Vimage_perpsectivetransform structure that describes the transformation from the source points to the destination points.
- flags:
The options to use when performing the operation. If your code implements its own tiling or its own multithreading, pass Kvimagedonottile; otherwise, pass Kvimagenoflags.
Mentioned in
Return Value
kvImageNoError; otherwise, one of the error codes in Data Types and Constants.