Click or drag to resize

Frame2D Class

A 2D frame captured by a Zivid camera
Inheritance Hierarchy
SystemObject
  Zivid.NETFrame2D

Namespace:  Zivid.NET
Assembly:  ZividCoreNET (in ZividCoreNET.dll) Version: 2.18.0.0
Syntax
public class Frame2D : IDisposable

The Frame2D type exposes the following members.

Constructors
  NameDescription
Public methodFrame2D(String)
Load a 2D frame from a .zdf file
Public methodFrame2D(Frame2D*)
Initializes a new instance of the Frame2D class
Top
Properties
  NameDescription
Public propertyCameraInfo
Get information about the camera used to capture the frame
Public propertyInfo
Get information collected at the time of the capture
Public propertyIsDisposed
Check if the frame is disposed
Public propertySettings
Get the settings used to capture this frame
Public propertyState
Get the camera state data at the time of the capture
Top
Methods
  NameDescription
Public methodClone
Returns a clone of the frame. The clone will include a copy of all of the frame data.
Public methodDispose
Releases all resources used by the Frame2D
Public methodImageBGRA
Get the associated 2D color image in 8-bit BGRA format
Public methodImageBGRA_SRGB
Get the associated 2D color image in the sRGB color space in 8-bit BGRA format
Public methodImageDeviceArrayBGRA
Get a device buffer containing BGRA image data (8 bits per channel, linear)
Public methodImageDeviceArrayBGRA_SRGB
Get a device buffer containing BGRA image data in the sRGB color space (8 bits per channel)
Public methodImageDeviceArrayRGBA
Get a device buffer containing RGBA image data (8 bits per channel, linear)
Public methodImageDeviceArrayRGBA_SRGB
Get a device buffer containing RGBA image data in the sRGB color space (8 bits per channel)
Public methodImageDeviceArrayRGBAf
Get a device buffer containing RGBA float image data (32 bits per channel, linear)
Public methodImageRGBA
Get the associated 2D color image in 8-bit RGBA format
Public methodImageRGBA_SRGB
Get the associated 2D color image in the sRGB color space in 8-bit RGBA format
Public methodImageSRGB
Get the associated 2D color image in the sRGB color space in 8-bit RGBA format
Public methodLoad
Load a 2D frame from a .zdf file
Public methodSave
Save the 2D frame to a .zdf file
Public methodShallowCopy
Returns a shallow copy of the frame. The copy will share the image data with the original frame.
Public methodToString
Get string representation of the frame
(Overrides ObjectToString.)
Top
Remarks
Contains a 2D image as well as metadata, settings and state of the API at the time of capture. Note that if this Frame2D object was returned from a call to `Camera::Capture(Settings^)` or `Camera::Capture(Settings2D^)`, then there may still be remaining data transfer and processing going on in the background. When you call a method on Frame2D that requires the capture to be finished, for example ImageRGBA, the method will block until the image is available. The images are not corrected for lens distortion. If your application relies on the geometry of the image, you can undistort it using the camera intrinsics.
See Also