Tanoda
Leap.DistortionData Class Reference

The DistortionData class contains the distortion map for correcting the lens distortion of an image. More...

Public Member Functions

 DistortionData ()
 Constructs an uninitialized distortion object. More...
 
 DistortionData (UInt64 version, float width, float height, float[] data)
 

Properties

UInt64 Version [get, set]
 An identifier assigned to the distortion map. More...
 
float Width [get, set]
 The width of the distortion map. More...
 
float Height [get, set]
 The height of the distortion map. More...
 
float[] Data [get, set]
 The distortion data. More...
 
bool IsValid [get]
 Reports whether the distortion data is internally consistent. More...
 

Detailed Description

The DistortionData class contains the distortion map for correcting the lens distortion of an image.

The distortion data is an array containing a 64x64 grid of floating point pairs. The distortion map for both sides of an image pair are stacked in the Data array – the left map first, followed by the right map.

Since
3.0

Definition at line 22 of file DistortionData.cs.

Constructor & Destructor Documentation

◆ DistortionData() [1/2]

Leap.DistortionData.DistortionData ( )

Constructs an uninitialized distortion object.

Since
3.0

Definition at line 27 of file DistortionData.cs.

◆ DistortionData() [2/2]

Leap.DistortionData.DistortionData ( UInt64  version,
float  width,
float  height,
float[]  data 
)

Since
3.0

Definition at line 32 of file DistortionData.cs.

Property Documentation

◆ Data

float [] Leap.DistortionData.Data
getset

The distortion data.

Since
3.0

Definition at line 71 of file DistortionData.cs.

◆ Height

float Leap.DistortionData.Height
getset

The height of the distortion map.

Currently always 64.

Since
3.0

Definition at line 65 of file DistortionData.cs.

◆ IsValid

bool Leap.DistortionData.IsValid
get

Reports whether the distortion data is internally consistent.

Since
3.0

Definition at line 76 of file DistortionData.cs.

◆ Version

UInt64 Leap.DistortionData.Version
getset

An identifier assigned to the distortion map.

When the distortion map changes – either because the devices flips the images to automatically orient the hands or because a different device is plugged in, the version number of the distortion data changes.

Note that the version always increases. If the images change orientation and then return to their original orientation, a new version number is assigned. Thus the version number can be used to detect when the data has changed, but not to uniquely identify the data.

Since
3.0

Definition at line 51 of file DistortionData.cs.

◆ Width

float Leap.DistortionData.Width
getset

The width of the distortion map.

Currently always 64. Note that there are two floating point values for every point in the map.

Since
3.0

Definition at line 58 of file DistortionData.cs.


The documentation for this class was generated from the following file: