FormatConverterOpenCv C++ lib. Pixel format converter with lot of formats support
FormatConverterOpenCv C++ library version 5.0.3 intended to convert pixels formats of images between each others (RGB24, BGR24, YUYV, UYVY, GRAY, YUV24, NV12, NV21, YU12, YV12).
LICENSE: We sell source code of this library as is, without future updates and technical support according to perpetual non-exclusive royalty-free license. You pay once and can use this library in your software and hardware products without limits. Please read the license agreement before purchasing: DOWNLOAD LICENSE. You can buy technical support service for this product.
Purchase options
You can by this software online by card or you can buy the software by bank transfer. Bank transfer available only for companies. To buy software by bank transfer please send us request to info@constantrobotics.com. Also, you can buy technical support service for this product.
Downloads
Programmer’s manual: DOWNLOAD
Overview
FormatConverterOpenCv library intended to convert pixels formats of images between each others. FormatConverterOpenCv supports all uncompressed pixel formats listed in Fourcc enum (RGB24, BGR24, YUYV, UYVY, GRAY, YUV24, NV12, NV21, YU12, YV12). FormatConverterOpenCv uses OpenCV library (version 4.5.0 and more) to convert particular pixel formats. Main file FormatConverterOpenCv.h contains declaration of FormatConverterOpenCv class.
Simple interface
class FormatConverterOpenCv
{
public:
/// Static method to obtain class version.
static std::string getVersion();
/// Convert pixel format.
bool convert(Frame& src, Frame& dst);
};
Simple example
// Init frame converter.
FormatConverterOpenCv converter;
// Init source image filled by 0.
Frame src(640, 480, Fourcc::BGR24);
// Init output image.
Frame dst;
dst.fourcc = Fourcc::YUV24;
// Convert.
converter.convert(src, dst);