Allow edition of the internal camera parameters of an SImage.
More...
|
| number | GetFocalLength () |
| | Get the focal length in mm.
|
| |
| number | GetPixelSize () |
| | Get the pixel size in mm.
|
| |
| number | GetPPAx () |
| | Get the X value of the principal point of autocollimation in mm.
|
| |
| number | GetPPAy () |
| | Get the Y value of the principal point of autocollimation in mm.
|
| |
| number | GetPPSx () |
| | Get the X value of the principal point of symmetry in mm.
|
| |
| number | GetPPSy () |
| | Get the Y value of the principal point of symmetry in mm.
|
| |
| Object | GetRadialDistortion () |
| | Get the radial distortion coefficients.
|
| |
| number | GetSensorHeight () |
| | Get the sensor height in mm.
|
| |
| number | GetSensorWidth () |
| | Get the sensor width in mm.
|
| |
| Object | GetTangentialDistortion () |
| | Get the tangential distortion coefficients.
|
| |
|
| SCameraInternal () |
| | Default constructor.
|
| |
| | SCameraInternal (SCameraInternal other) |
| | Construct an SCameraInternal by copying the SCameraInternal other.
|
| |
| | SetFocalLength (number focalLength) |
| | Set the focal length in mm.
|
| |
| | SetPixelSize (number pixelSize) |
| | Set the pixel size in mm.
|
| |
| | SetPPA (number xPPA, number yPPA) |
| | Set the principal point of autocollimation in mm.
|
| |
| | SetPPS (number xPPS, number yPPS) |
| | Set the principal point of symmetry in mm.
|
| |
| | SetRadialDistortion (Array< number > coefK) |
| | Set the radial distortion coefficients. The input table should have 7 elements.
|
| |
| | SetSensorSize (number sensorWidth, number sensorHeight) |
| | Set the sensor size in mm.
|
| |
| | SetTangentialDistortion (Array< number > coefP) |
| | Set the tangential distortion coefficients. The input table should have 2 elements.
|
| |
| string | toString () |
| | Get the type of the variable.
|
| |
Allow edition of the internal camera parameters of an SImage.
- See also
- SImage, SCameraExternal
◆ SCameraInternal()
◆ FromFile()
| static Object SCameraInternal::FromFile |
( |
string | fileName | ) |
|
|
static |
Import an .incam file and create a new SCameraInternal from file.
- 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