Class ArucoCameraParametersController
Editor controller for CameraParameters.
Implements
Namespace: ArucoUnity.Cameras.Parameters
Assembly: Assembly-CSharp.dll
Syntax
public class ArucoCameraParametersController : MonoBehaviour, IHasArucoCameraParameters
Fields
| Improve this Doc View SourceCameraParametersFolderPath
The folder where to load and save the CameraParameters files, relative to
Declaration
protected const string CameraParametersFolderPath = "ArucoUnity"
Field Value
Type | Description |
---|---|
String |
cameraParametersPath
Declaration
protected string cameraParametersPath
Field Value
Type | Description |
---|---|
String |
Properties
| Improve this Doc View SourceAutoLoadFile
Declaration
public bool AutoLoadFile { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
CameraParameters
Gets or sets the CameraParameters.
Declaration
public ArucoCameraParameters CameraParameters { get; set; }
Property Value
Type | Description |
---|---|
ArucoCameraParameters |
CameraParametersFilename
Gets or sets the xml file corresponding to the CameraParameters, relative to CameraParametersFolderPath.
Declaration
public string CameraParametersFilename { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceAwake()
Calls Load() if AutoLoadFile is true
.
Declaration
protected virtual void Awake()
Initialize(Int32)
Initializes CameraParameters with ArucoCameraParameters(Int32)
Declaration
public virtual void Initialize(int cameraNumber)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cameraNumber | The number of cameras in the calibrated camera system. |
Load()
Initializes CameraParameters with LoadFromXmlFile(String).
Declaration
public virtual void Load()
Save()
Calls SaveToXmlFile(String). Creates before the CameraParametersFolderPath folder before if necessary.
Declaration
public virtual void Save()