void cv::convertScaleAbs(
  cv::InputArray src, // 输入数组
  cv::OutputArray dst, // 输出数组
  double alpha = 1.0, // 乘数因子
  double beta = 0.0 // 偏移量
);

// Copyright (C) 2000-2015, Intel Corporation, all rights reserved.
// Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved.
// Copyright (C) 2015, OpenCV Foundation, all rights reserved.
// Copyright (C) 2015, Itseez Inc., all rights reserved.

/** @brief Scales, calculates absolute values, and converts the result to 8-bit.

On each element of the input array, the function convertScaleAbs
performs three operations sequentially: scaling, taking an absolute
value, conversion to an unsigned 8-bit type:
\f[\texttt{dst} (I)= \texttt{saturate\_cast<uchar>} (| \texttt{src} (I)* \texttt{alpha} + \texttt{beta} |)\f]
In case of multi-channel arrays, the function processes each channel
independently. When the output is not 8-bit, the operation can be
emulated by calling the Mat::convertTo method (or by using matrix
expressions) and then by calculating an absolute value of the result.
For example:
@code{.cpp}
Mat_<float> A(30,30);
randu(A, Scalar(-100), Scalar(100));
Mat_<float> B = A*5 + 3;
B = abs(B);
// Mat_<float> B = abs(A*5+3) will also do the job,
// but it will allocate a temporary matrix
@endcode
@param src input array.
@param dst output array.
@param alpha optional scale factor.
@param beta optional delta added to the scaled values.
@sa Mat::convertTo, cv::abs(const Mat&)
*/
CV_EXPORTS_W void convertScaleAbs(

  InputArray src,

  OutputArray dst,
  double alpha = 1,

  double beta = 0

);

最新文章

  1. 在caffe中添加新的layer
  2. c#面向对象基础 重写、虚方法、抽象类
  3. win10系统安装.net35的命令行方式
  4. C# Path.Combine 方法的用法
  5. linux C(hello world)三个数最大和三个数最新
  6. netbeans 调试 php
  7. 【JS】&lt;select&gt;标签小结
  8. 个人计算机安装hadoop全分布
  9. JavaScript中的函数:闭包,this,高阶函数
  10. [最短路]P1828 香甜的黄油 Sweet Butter
  11. SoapUI模拟soap接口返回不同响应(通过groovy脚本)
  12. php短信验证码接口接入流程及代码示例
  13. vue学习之生命周期和钩子函数
  14. 论坛:Error:No result defined for action cn.itcast.oa.view.action.TopicAction and result
  15. android中使用通知功能
  16. jmeter 模拟ajax/ https请求 失败的解决方法
  17. WPF 为 PasswordBox 控件添加水印,最低级版
  18. [转] copy_to_user和copy_from_user两个函数的分析
  19. Luogu 4949 最短距离
  20. struts2进阶

热门文章

  1. odoo 使用源码安装时的注意
  2. 什么是YARN
  3. 【yii2从Apache迁移到nginx上访问报500错误】
  4. 最近github上的一些有用链接资料备份
  5. erlang的调试配置
  6. golang里面检测对象是否实现了接口的方法
  7. cocos2d-x的popScene的动画效果
  8. AngularJS.js: 杂项
  9. Required String parameter &#39;id&#39; is not present
  10. Fiddler过滤操作