LensDistortion class final

1.1 (02b E4): lens distortion model.

Annotations
  • @immutable

Constructors

LensDistortion({required DistortionModel model, List<double>? coefficients, List<double>? centre, Map<String, Object?> extra = const {}})
Creates a LensDistortion.
const
LensDistortion.fromJson(Map<String, Object?> json, [String path = ''])
Decodes json; throws FormatException (with the JSON path) on a missing required member or a type mismatch. Unknown members and explicit nulls go to extra.
factory

Properties

centre → List<double>?
distortion centre, normalised image coordinates
final
coefficients → List<double>?
brown-conrady k1,k2,k3,p1,p2; fisheye-poly k1..k4; radial k1,k2,k3 (01b §4.2.1)
final
extra → Map<String, Object?>
Members this version does not model (incl. x-* extensions and explicit nulls); written back by toJson.
final
hashCode → int
The hash code for this object.
no setteroverride
model → DistortionModel
model member.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({DistortionModel? model, List<double>? coefficients, List<double>? centre, Map<String, Object?>? extra}) → LensDistortion
A copy with the given members replaced (a member cannot be reset to null this way).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Encodes to JSON (absent members omitted, extra merged back).
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override