forked from microsoft/HoloLensForCV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraFrame.h
44 lines (40 loc) · 1.34 KB
/
CameraFrame.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
#include "pch.h"
namespace BatchProcessing
{
//
// Describes a single camera frame retrieved from a recording.
//
struct HoloLensCameraFrame
{
uint64_t Timestamp;
Windows::Storage::StorageFolder^ RecordingFolder;
std::wstring FileName;
cv::Mat FrameToOrigin;
cv::Mat CameraViewTransform;
cv::Mat CameraProjectionTransform;
int32_t Width;
int32_t Height;
int32_t PixelFormat;
cv::Mat Image;
void Load();
void Unload();
};
//
// Opens a camera frame manifest file from the specified folder
// and returns a list of camera frames. Does not load the camera
// images -- call HoloLensCameraFrame::Load for that to happen.
//
std::vector<HoloLensCameraFrame> DiscoverCameraFrames(
_In_ Windows::Storage::StorageFolder^ recordingFolder,
_In_ const std::wstring& manifestFileName);
}