Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2021.
SCameraInternal Class Reference

This class is only available if you have the Survey plugin.
. More...

Inheritance diagram for SCameraInternal:
SObject

Public Slots

static Array FromFile (String iFileName)
 Function to import an .incam file and create a new SCameraInternal from file. More...
 
Number GetFocalLength ()
 Get the focal length in mm. More...
 
Number GetPixelSize ()
 Get the pixel size in mm. More...
 
Number GetPPAx ()
 Get X value of the principal point of autocollimation in mm. More...
 
Number GetPPAy ()
 Get Y value of the principal point of autocollimation in mm. More...
 
Number GetPPSx ()
 Get X value of the principal point of symmetry in mm. More...
 
Number GetPPSy ()
 Get Y value of the principal point of symmetry in mm. More...
 
Array GetRadialDistortion ()
 Get the radial distortion coefficients. More...
 
Number GetSensorHeight ()
 Get the sensor height in mm. More...
 
Number GetSensorWidth ()
 Get the sensor width in mm. More...
 
Array GetTangentialDistortion ()
 Get the tangential distortion coefficients. More...
 
static SCameraInternal New ()
 Default constructor. More...
 
static SCameraInternal New (SCameraInternal iOther)
 Constructs a SCameraInternal by copying the SCameraInternal Other. More...
 
 SetFocalLength (Number iFocalLength)
 Set the focal length in mm. More...
 
 SetPixelSize (Number iPixelSize)
 Set the pixel size in mm. More...
 
 SetPPA (Number xPPA, Number yPPA)
 Set the principal point of autocollimation in mm. More...
 
 SetPPS (Number xPPS, Number yPPS)
 Set the principal point of symmetry in mm. More...
 
 SetRadialDistortion (Array< Number > iCoefK)
 Set the radial distortion coefficients. The input table should have 7 elements. More...
 
 SetSensorSize (Number iSensorWidth, Number iSensorHeight)
 Set the sensor size in mm. More...
 
 SetTangentialDistortion (Array< Number > iCoefP)
 Set the tangential distortion coefficients. The input table should have 2 elements. More...
 
String toString ()
 Get the type of the variable. More...
 
String toString ()
 Get the type of the variable. More...
 
- Public Slots inherited from SObject
 Clear ()
 To deallocate memory of the object. More...
 
String toString ()
 Get the type of the variable. More...
 

Detailed Description

This class is only available if you have the Survey plugin.
.

Warning
How to use function from namespace SCameraInternal ?
Use name of the namespace before to call function.
var result = SCameraInternal.FromFile( myPath );
This class is only available if you have the Survey plugin. .
Definition: SCameraInternal.h:30
static Array FromFile(String iFileName)
Function to import an .incam file and create a new SCameraInternal from file.

Member Function Documentation

◆ FromFile

static Array SCameraInternal::FromFile ( String  iFileName)
staticslot

Function to import an .incam file and create a new SCameraInternal from file.

Warning
In Javascript, when you write strings the '\' character is an escape character, you need to use '\\' or '/' instead. Pay especially attention to this when writing file paths in your scripts. For example :
var res = SCameraInternal.FromFile( 'C:/InternalParams.incam' ); // Valid syntax\n
var res2 = SCameraInternal.FromFile( 'C:\\InternalParams.incam' ); // Valid syntax\n
var res3 = SCameraInternal.FromFile( 'C:\InternalParams.incam' ); // Invalid syntax
Return values
Array.ErrorCodeThe error code:
  • 0 No error occurred.
  • 1 An error occurred.
Array.CameraInternalThe camera internal parameters
Parameters
[in]iFileNamepath and name of the .incam file to import

◆ GetFocalLength

Number SCameraInternal::GetFocalLength ( )
slot

Get the focal length in mm.

◆ GetPixelSize

Number SCameraInternal::GetPixelSize ( )
slot

Get the pixel size in mm.

◆ GetPPAx

Number SCameraInternal::GetPPAx ( )
slot

Get X value of the principal point of autocollimation in mm.

◆ GetPPAy

Number SCameraInternal::GetPPAy ( )
slot

Get Y value of the principal point of autocollimation in mm.

◆ GetPPSx

Number SCameraInternal::GetPPSx ( )
slot

Get X value of the principal point of symmetry in mm.

◆ GetPPSy

Number SCameraInternal::GetPPSy ( )
slot

Get Y value of the principal point of symmetry in mm.

◆ GetRadialDistortion

Array SCameraInternal::GetRadialDistortion ( )
slot

Get the radial distortion coefficients.

Return values
Array.CoefKThe table of radial distortion coefficients

◆ GetSensorHeight

Number SCameraInternal::GetSensorHeight ( )
slot

Get the sensor height in mm.

◆ GetSensorWidth

Number SCameraInternal::GetSensorWidth ( )
slot

Get the sensor width in mm.

◆ GetTangentialDistortion

Array SCameraInternal::GetTangentialDistortion ( )
slot

Get the tangential distortion coefficients.

Return values
Array.CoefPThe table of tangential distortion coefficients

◆ New [1/2]

static SCameraInternal SCameraInternal::New ( )
staticslot

Default constructor.

◆ New [2/2]

static SCameraInternal SCameraInternal::New ( SCameraInternal  iOther)
staticslot

Constructs a SCameraInternal by copying the SCameraInternal Other.

◆ SetFocalLength

SCameraInternal::SetFocalLength ( Number  iFocalLength)
slot

Set the focal length in mm.

◆ SetPixelSize

SCameraInternal::SetPixelSize ( Number  iPixelSize)
slot

Set the pixel size in mm.

◆ SetPPA

SCameraInternal::SetPPA ( Number  xPPA,
Number  yPPA 
)
slot

Set the principal point of autocollimation in mm.

◆ SetPPS

SCameraInternal::SetPPS ( Number  xPPS,
Number  yPPS 
)
slot

Set the principal point of symmetry in mm.

◆ SetRadialDistortion

SCameraInternal::SetRadialDistortion ( Array< Number >  iCoefK)
slot

Set the radial distortion coefficients. The input table should have 7 elements.

◆ SetSensorSize

SCameraInternal::SetSensorSize ( Number  iSensorWidth,
Number  iSensorHeight 
)
slot

Set the sensor size in mm.

◆ SetTangentialDistortion

SCameraInternal::SetTangentialDistortion ( Array< Number >  iCoefP)
slot

Set the tangential distortion coefficients. The input table should have 2 elements.

◆ toString [1/2]

String SCameraInternal::toString ( )
slot

Get the type of the variable.

◆ toString [2/2]

String SCameraInternal::toString ( )
slot

Get the type of the variable.