Overview
FormatConverterOpenCv library intended to convert pixels formats of images between each others. FormatConverterOpenCv supports all uncompressed pixel formats (conversion between each other) listed in Fourcc enum (RGB24, BGR24, YUYV, UYVY, GRAY, YUV24, NV12, NV21, YU12, YV12) of Frame library (defines video frame object and pixel formats). FormatConverterOpenCv uses OpenCV library (version 4.5.0 and more) to convert particular pixel formats. Main file FormatConverterOpenCv.h contains declaration of FormatConverterOpenCv class. The motivation of the library is to provide conversion method between all pixel formats listed in Frame library even if it is not supported by OpenCV library. The library uses C++17 standard and compatible with Linux and Windows.
Documentation
Documentation: GO TO DOCUMENTATION
Simple interface
class FormatConverterOpenCv
{
public:
/// Static method to obtain class version.
static std::string getVersion();
/// Convert pixel format.
bool convert(Frame& src, Frame& dst);
};