DFX Extraction library v4.15.8
enabling applications to perform DFX blood flow analysis
Loading...
Searching...
No Matches
VideoFrame.h
1/*
2 * Copyright (c) 2016-2019, Nuralogix Corp.
3 * All Rights reserved
4 *
5 * THIS SOFTWARE IS LICENSED BY AND IS THE CONFIDENTIAL AND
6 * PROPRIETARY PROPERTY OF NURALOGIX CORP. IT IS
7 * PROTECTED UNDER THE COPYRIGHT LAWS OF THE USA, CANADA
8 * AND OTHER FOREIGN COUNTRIES. THIS SOFTWARE OR ANY
9 * PART THEREOF, SHALL NOT, WITHOUT THE PRIOR WRITTEN CONSENT
10 * OF NURALOGIX CORP, BE USED, COPIED, DISCLOSED,
11 * DECOMPILED, DISASSEMBLED, MODIFIED OR OTHERWISE TRANSFERRED
12 * EXCEPT IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF A
13 * NURALOGIX CORP SOFTWARE LICENSE AGREEMENT.
14 */
15#pragma once
16#ifndef LIBDFX_VIDEOFRAME_H
17#define LIBDFX_VIDEOFRAME_H
18
19#include <limits>
20#include <opencv2/opencv.hpp> // For cv::Mat (and cv::Point3f) from core
21
22namespace dfx {
23
35struct VideoFrame {
47 enum class ChannelOrder {
49 BGR = 1,
50
52 RGB = 2,
53
55 BGRA = 3,
56
58 RGBA = 4,
59
61 Infrared = 5,
62
64 Infrared888 = 6,
65
67 BGR_Infrared = 7,
68
70 RGB_Infrared = 8,
71
73 Gray = 9
74 };
75
82 cv::Mat image;
83
92
104 uint64_t timestamp_ns;
105
116 uint32_t number;
117
145 double timestamp_millisec{std::numeric_limits<double>::quiet_NaN()};
146};
147} // namespace dfx
148
149#endif // LIBDFX_VIDEOFRAME_H
Definition ChunkData.h:21
Represents the internal structure for how image frames are passed to the DFX Engine since there is li...
Definition VideoFrame.h:35
uint64_t timestamp_ns
the timestamp of this video frame.
Definition VideoFrame.h:104
cv::Mat image
the image color channels for the frame.
Definition VideoFrame.h:82
double timestamp_millisec
the timestamp of the video frame in milliseconds
Definition VideoFrame.h:145
uint32_t number
the video frame number within the video sequence.
Definition VideoFrame.h:116
ChannelOrder order
the image channel ordering.
Definition VideoFrame.h:91
ChannelOrder
Definition VideoFrame.h:47