25 lines
630 B
C++
25 lines
630 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include "ArFrame.hpp"
|
|
#include "ArSession.hpp"
|
|
#include "ArRecorder.hpp"
|
|
|
|
namespace OpenVulkano::AR
|
|
{
|
|
float ArFrame::GetConfidenceNormalisationFactor() const
|
|
{
|
|
return m_session->GetSessionMetadata().GetConfidenceNormalisationFactor();
|
|
}
|
|
|
|
void ArFrame::Save()
|
|
{
|
|
if (m_highRes)
|
|
m_session->GetRecorder().SaveHighResolution(shared_from_this());
|
|
else
|
|
m_session->GetRecorder().Save(shared_from_this());
|
|
}
|
|
} |