MediaPipeTasksVision Framework Reference

TransformMatrix

class TransformMatrix : NSObject

A matrix that can be used for tansformations.

  • The number of rows.

    Declaration

    Swift

    var rows: UInt { get }
  • The number of columns.

    Declaration

    Swift

    var columns: UInt { get }
  • The values of the transform matrix.

    Declaration

    Swift

    var data: UnsafeMutablePointer<Float> { get }
  • Creates a new MPPTransformMatrix.

    Declaration

    Swift

    init(data: UnsafePointer<Float>, rows: Int, columns: Int)

    Parameters

    data

    Pointer to the memory location where the data is stored. The data is copied.

    rows

    The number of rows.

    columns

    The number of columns.

  • Undocumented

  • Returns the value located at the specified location. An NSRangeException is raised if the location is outside the range of the matrix.

    Declaration

    Swift

    func value(atRow row: UInt, column: UInt) -> Float
  • Undocumented