VideoFrame Constructor

Create a VideoFrame object

Definition

Namespace: Dfx.Sdk
Assembly: Nuralogix.Dfx.Sdk (in Nuralogix.Dfx.Sdk.dll) Version: 4.14.5.0 (4.14.5.0)
C#
public VideoFrame(
	ushort rows,
	ushort cols,
	PixelType pixelType,
	int stride,
	IntPtr data,
	ChannelOrder order,
	double timestamp_millisec,
	uint number
)

Parameters

rows  UInt16
Number of rows in the image
cols  UInt16
Number of cols in the image
pixelType  PixelType
PixelType of the image
stride  Int32
Number of bytes each row occupies
data  IntPtr
Pointer to image data. This will be pinned on the heap.
order  ChannelOrder
ChannelOrder of the image
timestamp_millisec  Double
The timestamp in milliseconds of this video frame.

Accurate DFX predictions require a consistent and accurate timestamp for the video frames. This is easily achievable when processing offline videos, but will require some effort for processing real-time camera feeds to ensure the frames maintain a consistent inter-frame interval.

number  UInt32
The video frame number within the video sequence.

Frame numbers are expected to be sequentially provided for a measurement and the number of sequential frames must be sufficient for the study measurement requirements to be fulfilled. Since multiple measurements can be performed on a video sequence, the frame number helps identify positioning within a video and if a frame is lost.

See Also