196 typename ColorFormat,
197 typename = std::enable_if_t<Detail::SupportedImageDeviceArrayColorFormat<ColorFormat>::value>>
213 typename ColorFormat,
214 typename = std::enable_if_t<Detail::SupportedImageDeviceArrayColorFormat<ColorFormat>::value>>
285# define ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(Format) \
286 extern template ZIVID_CORE_EXPORT DeviceArray<Format> Frame2D::imageDeviceArray<Format, void>(StreamOrQueue) \
288 extern template ZIVID_CORE_EXPORT void \
289 Frame2D::imageDeviceArray<Format, void>(DeviceArrayView<Format>, StreamOrQueue) const
291 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorRGBA);
293 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorBGRA);
294 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorBGRA_SRGB);
295 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorRGBAf);
296 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorRGB);
297 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorRGB_SRGB);
298 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorBGR);
299 ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY(ColorBGR_SRGB);
300# undef ZIVID_FRAME2D_EXTERN_IMAGE_DEVICE_ARRAY
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
#define ZIVID_PIMPL_REFERENCE_SEMANTICS(ClassName, Attributes)
Definition Pimpl.h:149
Information about camera model, serial number etc.
Definition CameraInfo.h:78
Information about camera connection state, temperatures, etc.
Definition CameraState.h:79
Non-owning view of a device buffer.
Definition DeviceArray.h:270
Reference-counted handle to data on a GPU device.
Definition DeviceArray.h:94
A 2D frame captured by a Zivid camera.
Definition Frame2D.h:74
ZIVID_CORE_EXPORT Image< ColorRGBA > imageRGBA() const
Get color (RGBA) image from the frame.
ZIVID_CORE_EXPORT Settings2D settings() const
Get the settings used to capture this frame.
ZIVID_CORE_EXPORT Image< ColorRGB_SRGB > imageRGB_SRGB() const
Get color (RGB in the sRGB color space, 3-channel, no alpha) image from the frame.
ZIVID_CORE_EXPORT void imageDeviceArray(DeviceArrayView< ColorFormat > destinationBuffer, StreamOrQueue streamOrQueue) const
Fill a user-provided DeviceArrayView with the image in the specified format.
ZIVID_CORE_EXPORT Frame2D()
Construct a new empty 2d frame.
ZIVID_CORE_EXPORT Image< ColorBGR > imageBGR() const
Get color (BGR, 3-channel, no alpha) image from the frame.
ZIVID_CORE_EXPORT FrameInfo info() const
Get information collected at the time of the capture.
ZIVID_CORE_EXPORT CameraInfo cameraInfo() const
Get information about the camera used to capture the frame.
ZIVID_CORE_EXPORT Image< ColorRGB > imageRGB() const
Get color (RGB, 3-channel, no alpha) image from the frame.
ZIVID_CORE_EXPORT Image< ColorRGBA_SRGB > imageSRGB() const
Get color (RGBA in the sRGB color space) image from the frame.
ZIVID_CORE_EXPORT Image< ColorBGRA_SRGB > imageBGRA_SRGB() const
Get color (BGRA in the sRGB color space) image from the frame.
ZIVID_CORE_EXPORT Image< ColorBGR_SRGB > imageBGR_SRGB() const
Get color (BGR in the sRGB color space, 3-channel, no alpha) image from the frame.
ZIVID_CORE_EXPORT void load(const std::string &fileName)
Load a frame from a .zdf file.
ZIVID_CORE_EXPORT void save(const std::string &fileName) const
Save the frame to a .zdf file.
ZIVID_CORE_EXPORT std::string toString() const
Get string representation of the frame.
ZIVID_CORE_EXPORT DeviceArray< ColorFormat > imageDeviceArray(StreamOrQueue streamOrQueue) const
Get a GPU device buffer of the image in the specified format.
ZIVID_CORE_EXPORT Frame2D clone() const
Returns a clone of the frame. The clone will include a copy of all of the frame data.
ZIVID_CORE_EXPORT Image< ColorRGBA_SRGB > imageRGBA_SRGB() const
Get color (RGBA in the sRGB color space) image from the frame.
ZIVID_CORE_EXPORT CameraState state() const
Get the camera state data at the time of the capture.
ZIVID_CORE_EXPORT Image< ColorBGRA > imageBGRA() const
Get color (BGRA) image from the frame.
ZIVID_CORE_EXPORT Frame2D(const std::string &fileName)
Construct a Frame2D by loading from a .zdf file.
Various information for a frame.
Definition FrameInfo.h:79
A 2-dimensional image.
Definition Image.h:141
Settings used when capturing 2D images with a Zivid camera.
Definition Settings2D.h:79
Definition EnvironmentInfo.h:74
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85
ColorSRGB ColorRGBA_SRGB
Color with 8-bit red, green, blue and alpha channels in the sRGB color space.
Definition Color.h:93
@ frame
Definition FrameFileType.h:55
A user CUDA stream or OpenCL command queue, selected by which member is populated.
Definition ComputeWrappers.h:106