Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub

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 of one format to an image of another format. More...
 

Detailed Description

Universal functions for image format conversions.

Function Documentation

◆ Convert()

void Convert ( const View< A > &  src,
View< A > &  dst 
)

Converts an image of one format to an image of another format.

The input and output images must have the same width and height.

Note
This function supports conversion between View::Gray8, View::Bgr24, View::Bgra32, View::Rgb24 and View::Rgba32 image formats.
Parameters
[in]src- an input image.
[out]dst- an output image.