TensorOpenCV.h File
OpenCV helpers for Tensor. More...
Included Headers
#include "pipeline/TensorCore.h"
Description
OpenCV helpers for Tensor.
Provides a cv::Mat to Tensor adapter, available only when the framework is built with OpenCV support (SIMA_WITH_OPENCV). Returned tensors can either reference the Mat's data (zero-copy, read-only) or take ownership of the bytes; see the function-level docs for which mode is selected.
- See Also
TensorAdapters.h for the GStreamer-side adapter.
File Listing
The file content with the documentation metadata removed is:
15#include "pipeline/TensorCore.h"
18namespace simaai::neat {
33 "from_cv_mat(mat, fmt) defaults to EV74 placement.")]] Tensor
34from_cv_mat(const cv::Mat& mat, ImageSpec::PixelFormat fmt, bool read_only);
44Tensor from_cv_mat_view(const cv::Mat& mat,
48Tensor from_cv_mat(const cv::Mat& mat, ImageSpec::PixelFormat fmt = ImageSpec::PixelFormat::BGR,
49 TensorMemory memory = TensorMemory::EV74);
50Tensor from_cv_mat(const cv::Mat& mat, TensorMemory memory);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.