Allow edition of the internal camera parameters of a SImage.
More...
Allow edition of the internal camera parameters of a SImage.
- See also
- SImage, SCameraExternal
◆ SCameraInternal() [1/2]
SCameraInternal::SCameraInternal |
( |
| ) |
|
◆ SCameraInternal() [2/2]
◆ FromFile()
static Object SCameraInternal::FromFile |
( |
string |
fileName | ) |
|
|
static |
Import an .incam file and create a new SCameraInternal from file.
- Warning
- When you write a '\' in string you need to double it '\\' or use '/' instead. Pay especially attention to this when writing file paths in your scripts.
var path = 'C:/Point.asc'; // valid syntax
var path = 'C:\\Point.asc'; // valid syntax
var path = 'C:\Point.asc'; // invalid syntax
- Parameters
-
fileName | (string) The path and name of the .incam file to import |
- Return values
-
ret.ErrorCode | (number) The error code
- 0: No error
- 1: An error occurred
|
ret.CameraInternal | (SCameraInternal) The camera internal parameters |
◆ GetFocalLength()
number SCameraInternal::GetFocalLength |
( |
| ) |
|
Get the focal length in mm.
- Returns
- (number) The focal length in mm.
◆ GetPixelSize()
number SCameraInternal::GetPixelSize |
( |
| ) |
|
Get the pixel size in mm.
- Returns
- (number) The pixel size in mm.
◆ GetPPAx()
number SCameraInternal::GetPPAx |
( |
| ) |
|
Get the X value of the principal point of autocollimation in mm.
- Returns
- (number) The X value of the principal point of autocollimation in mm.
◆ GetPPAy()
number SCameraInternal::GetPPAy |
( |
| ) |
|
Get the Y value of the principal point of autocollimation in mm.
- Returns
- (number) The Y value of the principal point of autocollimation in mm.
◆ GetPPSx()
number SCameraInternal::GetPPSx |
( |
| ) |
|
Get the X value of the principal point of symmetry in mm.
- Returns
- (number) The X value of the principal point of symmetry in mm.
◆ GetPPSy()
number SCameraInternal::GetPPSy |
( |
| ) |
|
Get the Y value of the principal point of symmetry in mm.
- Returns
- (number) The Y value of the principal point of symmetry in mm.
◆ GetRadialDistortion()
Object SCameraInternal::GetRadialDistortion |
( |
| ) |
|
Get the radial distortion coefficients.
- Return values
-
ret.CoefK | (Array<number>) The table of radial distortion coefficients |
◆ GetSensorHeight()
number SCameraInternal::GetSensorHeight |
( |
| ) |
|
Get the sensor height in mm.
- Returns
- (number) The sensor height in mm.
◆ GetSensorWidth()
number SCameraInternal::GetSensorWidth |
( |
| ) |
|
Get the sensor width in mm.
- Returns
- (number) The sensor width in mm.
◆ GetTangentialDistortion()
Object SCameraInternal::GetTangentialDistortion |
( |
| ) |
|
Get the tangential distortion coefficients.
- Return values
-
ret.CoefP | (Array<number>) The table of tangential distortion coefficients |
◆ New() [1/2]
◆ New() [2/2]
◆ SetFocalLength()
SCameraInternal::SetFocalLength |
( |
number |
focalLength | ) |
|
Set the focal length in mm.
- Parameters
-
focalLength | (number) The focal length in mm. |
◆ SetPixelSize()
SCameraInternal::SetPixelSize |
( |
number |
pixelSize | ) |
|
Set the pixel size in mm.
- Parameters
-
pixelSize | (number) The pixel size in mm. |
◆ SetPPA()
SCameraInternal::SetPPA |
( |
number |
xPPA, |
|
|
number |
yPPA |
|
) |
| |
Set the principal point of autocollimation in mm.
- Parameters
-
xPPA | (number) The X value of the principal point of autocollimation in mm. |
yPPA | (number) The Y value of the principal point of autocollimation in mm. |
◆ SetPPS()
SCameraInternal::SetPPS |
( |
number |
xPPS, |
|
|
number |
yPPS |
|
) |
| |
Set the principal point of symmetry in mm.
- Parameters
-
xPPS | (number) The X value of the principal point of symmetry in mm. |
yPPS | (number) The Y value of the principal point of symmetry in mm. |
◆ SetRadialDistortion()
SCameraInternal::SetRadialDistortion |
( |
Array< number > |
coefK | ) |
|
Set the radial distortion coefficients. The input table should have 7 elements.
- Parameters
-
coefK | (Array<number>) The radial distortion coefficients table. Should contain 7 elements |
◆ SetSensorSize()
SCameraInternal::SetSensorSize |
( |
number |
sensorWidth, |
|
|
number |
sensorHeight |
|
) |
| |
Set the sensor size in mm.
- Parameters
-
sensorWidth | (number) The sensor width in mm. |
sensorHeight | (number) The sensor height in mm. |
◆ SetTangentialDistortion()
SCameraInternal::SetTangentialDistortion |
( |
Array< number > |
coefP | ) |
|
Set the tangential distortion coefficients. The input table should have 2 elements.
- Parameters
-
coefP | (Array<number>) The tangential distortion coefficients table. Should contain 2 elements. |
◆ toString()
string SCameraInternal::toString |
( |
| ) |
|
Get the type of the variable.
- Returns
- (string) The type name