Universal
Universal functions for image format conversions. More...
Functions | |
| template<template< class > class A> | |
| SIMD_INLINE void | Convert (const View< A > &src, View< A > &dst) |
| Converts an image from one pixel format to another. More... | |
Detailed Description
Universal functions for image format conversions.
Function Documentation
◆ Convert()
Converts an image from one pixel format to another.
The input and output images must have the same width and height. Supported formats are View::Gray8, View::Bgr24, View::Bgra32, View::Rgb24 and View::Rgba32. If src and dst have the same format, the function copies pixels with Simd::Copy. Otherwise it dispatches to the corresponding specialized conversion function (for example Simd::BgrToGray, Simd::GrayToBgra, Simd::RgbToRgba and so on). Conversion between unsupported format pairs is not allowed.
- Parameters
-
[in] src - an input image. [out] dst - an output image.