to[i] = saturate_cast<T2>(from[i]*alpha + beta);
}
-static ConvertData getConvertData(int fromType, int toType)
+ConvertData getConvertElem(int fromType, int toType)
{
static ConvertData tab[][8] =
{{ convertData_<uchar, uchar>, convertData_<uchar, schar>,
return func;
}
-static ConvertScaleData getConvertScaleData(int fromType, int toType)
+ConvertScaleData getConvertScaleElem(int fromType, int toType)
{
static ConvertScaleData tab[][8] =
{{ convertScaleData_<uchar, uchar>, convertScaleData_<uchar, schar>,
if( alpha == 1 )
{
- ConvertData cvtfunc = getConvertData(type(), rtype);
+ ConvertData cvtfunc = getConvertElem(type(), rtype);
for( i = 0; i < N; i++, ++from )
{
const Node* n = from.node();
}
else
{
- ConvertScaleData cvtfunc = getConvertScaleData(type(), rtype);
+ ConvertScaleData cvtfunc = getConvertScaleElem(type(), rtype);
for( i = 0; i < N; i++, ++from )
{
const Node* n = from.node();
if( alpha == 1 && beta == 0 )
{
- ConvertData cvtfunc = getConvertData(type(), rtype);
+ ConvertData cvtfunc = getConvertElem(type(), rtype);
for( i = 0; i < N; i++, ++from )
{
const Node* n = from.node();
}
else
{
- ConvertScaleData cvtfunc = getConvertScaleData(type(), rtype);
+ ConvertScaleData cvtfunc = getConvertScaleElem(type(), rtype);
for( i = 0; i < N; i++, ++from )
{
const Node* n = from.node();