Improve ar frame handling if no depth image is available
This commit is contained in:
@@ -160,9 +160,10 @@ namespace OpenVulkano::AR
|
||||
depthWriter->AddFile(fileName.c_str(), buffers);
|
||||
}
|
||||
|
||||
if (depthImg.confidence.resolution.x > 1 && depthImg.confidence.resolution.y > 1)
|
||||
{
|
||||
//BlockProfiler profile("Save AR Frame - Confi");
|
||||
PnmHeader confidenceHeader(static_cast<uint32_t>(depthImg.confidence.resolution.x), static_cast<uint32_t>(depthImg.confidence.resolution.y), false, 2);
|
||||
PnmHeader confidenceHeader(depthImg.confidence.resolution.x, depthImg.confidence.resolution.y, false, 2);
|
||||
std::string header = confidenceHeader.ToString();
|
||||
buffers[0].first = header.c_str();
|
||||
buffers[0].second = header.size();
|
||||
|
||||
Reference in New Issue
Block a user