class ARScanQualityClassifier
(Niantic.ARDK.AR.Scanning.ARScanQualityClassifier)
Overview
ARScanQualityClassifier is responsible for computing the scan quality.
class ARScanQualityClassifier: Niantic.Lightship.AR.Scanning.IARScanQualityClassifier {
public:
// properties
bool Running;
float Progress;
// methods
ARScanQualityClassifier();
void Dispose();
bool Run(float framerate, string scanPath);
void CancelCurrentRun();
ScanQualityResult GetResult(string scanPath);
};
Inherited Members
public:
// properties
bool Running;
float Progress;
// methods
bool Run(float framerate, string scanPath);
void CancelCurrentRun();
ScanQualityResult GetResult(string scanPath);
Detailed Documentation
ARScanQualityClassifier is responsible for computing the scan quality.
-
Run() will start a quality compute asynchronously.
-
CancelCurrentRun() will interrupt the current compute, if any.
Result returned by the ARScanQualityClassifier.
Properties
Running
bool Running
Flag tells if a scan quality compute is running or not.
Returns:
Whether or not a run of quality computer is ongoing.
Progress
float Progress
Progress of current quality compute, range is in percent between [0, 100.0].
Returns:
Percentage of existing run. 0 will be returned if not running a quality compute.
Methods
Dispose
void Dispose()
Dispose the object and its internal resources.
Run
bool Run(float framerate, string scanPath)
Start a run to compute the scan quality asynchoursly.
Parameters:
scanPath
- Identifier of a scan.
Returns:
Whether or not the run will start, if ARScanQualityClassifier has already running, it will return false.
CancelCurrentRun
void CancelCurrentRun()
Cancel current run. When the function returns, it is guaranteed the ARScanQualityClassifier is not running a scan. Do nothing if it is not running.