Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw
value, this initializer returns `nil`. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
print(PaperSize(rawValue: "Legal"))
// Prints "Optional(PaperSize.Legal)"
print(PaperSize(rawValue: "Tabloid"))
// Prints "nil"
- Parameter rawValue: The raw value to use for the new instance.
The corresponding value of the raw type.
A new instance initialized with `rawValue` will be equivalent to this
instance. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
let selectedSize = PaperSize.Letter
print(selectedSize.rawValue)
// Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
// Prints "true"
get · iOS 26.0+
identifier
TypeScript
getIdentifier($self: CMFormatDescription_Extensions_Value_CameraCalibrationDataLensCollection_Calibration): number
The 3x3 camera intrinsic matrix for camera calibration.
It has the following contents:
| fx | s | cx |
| 0 | fy | cy |
| 0 | 0 | 1 |
fx and fy are the focal length in pixels. For square pixels, they will have the same value.
cx and cy are the coordinates of the principal point. The origin is the upper left of the frame.
s is an optional skew factor.
The 3x3 camera intrinsic matrix for camera calibration.
It has the following contents:
| fx | s | cx |
| 0 | fy | cy |
| 0 | 0 | 1 |
fx and fy are the focal length in pixels. For square pixels, they will have the same value.
cx and cy are the coordinates of the principal point. The origin is the upper left of the frame.
s is an optional skew factor.
get · iOS 26.0+
radialAngleLimit
TypeScript
getRadialAngleLimit($self: CMFormatDescription_Extensions_Value_CameraCalibrationDataLensCollection_Calibration): number
Swift declaration
var radialAngleLimit: Float
Outer limit of the calibration validity in degrees of angle eccentric from the optical axis.
The value is linked to radial distortion corrections with k1 and k2.
Outer limit of the calibration validity in degrees of angle eccentric from the optical axis.
The value is linked to radial distortion corrections with k1 and k2.
The first and second radial distortion coefficients (k1 and k2) used to correct the distortion
that appeared as curved lines for straight lines and the first and second tangential distortion
coefficients (p1 and p2) used to correct the distortion caused by a lens's improper alignment
of physical elements.
The first and second radial distortion coefficients (k1 and k2) used to correct the distortion
that appeared as curved lines for straight lines and the first and second tangential distortion
coefficients (p1 and p2) used to correct the distortion caused by a lens's improper alignment
of physical elements.
Three element polynomial for mapping x axis UV parameters with an adjustment using the equation
`x' = polynomialX[0] + polynomialX[1]*x + polynomialX[2]*x^3`.
Three element polynomial for mapping x axis UV parameters with an adjustment using the equation
`x' = polynomialX[0] + polynomialX[1]*x + polynomialX[2]*x^3`.
Three element polynomial for mapping y axis UV parameters with an adjustment using the equation
`y' = polynomialY[0] + polynomialY[1]*y + polynomialY[2]*y^3`.
Three element polynomial for mapping y axis UV parameters with an adjustment using the equation
`y' = polynomialY[0] + polynomialY[1]*y + polynomialY[2]*y^3`.
Camera’s orientation to a world or scene coordinate system. The orientation value is a unit
quaternion (ix, iy, and iz) instead of the classical 3x3 matrix.
Camera’s orientation to a world or scene coordinate system. The orientation value is a unit
quaternion (ix, iy, and iz) instead of the classical 3x3 matrix.
get · iOS 26.0+
intrinsicMatrixProjectionOffset
TypeScript
getIntrinsicMatrixProjectionOffset($self: CMFormatDescription_Extensions_Value_CameraCalibrationDataLensCollection_Calibration): number
Swift declaration
var intrinsicMatrixProjectionOffset: Float
Offset of the point of perspective relative to the rectilinear projection.
The iOS SDK compiler rejected this binding: type 'CMFormatDescription.Extensions.Value.CameraCalibrationDataLensCollection.Calibration' does not conform to protocol 'OneSDKNamedConstants'