亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cvaccum.cpp

?? 將OpenCV移植到DSP上
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
/*M///////////////////////////////////////////////////////////////////////////////////////
//
//  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
//  By downloading, copying, installing or using the software you agree to this license.
//  If you do not agree to this license, do not download, install,
//  copy or use the software.
//
//
//                        Intel License Agreement
//                For Open Source Computer Vision Library
//
// Copyright (C) 2000, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
//   * Redistribution's of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//
//   * Redistribution's in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//
//   * The name of Intel Corporation may not be used to endorse or promote products
//     derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/

#include "_cv.h"

#define  ICV_DEF_ACC_FUNC( name, srctype, dsttype, cvtmacro )           \
IPCVAPI_IMPL( CvStatus,                                                 \
name,( const srctype *src, int srcstep, dsttype *dst,                   \
       int dststep, CvSize size ), (src, srcstep, dst, dststep, size )) \
                                                                        \
{                                                                       \
    srcstep /= sizeof(src[0]);                                          \
    dststep /= sizeof(dst[0]);                                          \
                                                                        \
    for( ; size.height--; src += srcstep, dst += dststep )              \
    {                                                                   \
        int x;                                                          \
        for( x = 0; x <= size.width - 4; x += 4 )                       \
        {                                                               \
            dsttype t0 = dst[x] + cvtmacro(src[x]);                     \
            dsttype t1 = dst[x + 1] + cvtmacro(src[x + 1]);             \
            dst[x] = t0;  dst[x + 1] = t1;                              \
                                                                        \
            t0 = dst[x + 2] + cvtmacro(src[x + 2]);                     \
            t1 = dst[x + 3] + cvtmacro(src[x + 3]);                     \
            dst[x + 2] = t0;  dst[x + 3] = t1;                          \
        }                                                               \
                                                                        \
        for( ; x < size.width; x++ )                                    \
            dst[x] += cvtmacro(src[x]);                                 \
    }                                                                   \
                                                                        \
    return CV_OK;                                                       \
}


ICV_DEF_ACC_FUNC( icvAdd_8u32f_C1IR, uchar, float, CV_8TO32F )
ICV_DEF_ACC_FUNC( icvAdd_32f_C1IR, float, float, CV_NOP )
ICV_DEF_ACC_FUNC( icvAddSquare_8u32f_C1IR, uchar, float, CV_8TO32F_SQR )
ICV_DEF_ACC_FUNC( icvAddSquare_32f_C1IR, float, float, CV_SQR )


#define  ICV_DEF_ACCPROD_FUNC( flavor, srctype, dsttype, cvtmacro )         \
IPCVAPI_IMPL( CvStatus, icvAddProduct_##flavor##_C1IR,                      \
( const srctype *src1, int step1, const srctype *src2, int step2,           \
  dsttype *dst, int dststep, CvSize size ),                                 \
 (src1, step1, src2, step2, dst, dststep, size) )                           \
{                                                                           \
    step1 /= sizeof(src1[0]);                                               \
    step2 /= sizeof(src2[0]);                                               \
    dststep /= sizeof(dst[0]);                                              \
                                                                            \
    for( ; size.height--; src1 += step1, src2 += step2, dst += dststep )    \
    {                                                                       \
        int x;                                                              \
        for( x = 0; x <= size.width - 4; x += 4 )                           \
        {                                                                   \
            dsttype t0 = dst[x] + cvtmacro(src1[x])*cvtmacro(src2[x]);      \
            dsttype t1 = dst[x+1] + cvtmacro(src1[x+1])*cvtmacro(src2[x+1]);\
            dst[x] = t0;  dst[x + 1] = t1;                                  \
                                                                            \
            t0 = dst[x + 2] + cvtmacro(src1[x + 2])*cvtmacro(src2[x + 2]);  \
            t1 = dst[x + 3] + cvtmacro(src1[x + 3])*cvtmacro(src2[x + 3]);  \
            dst[x + 2] = t0;  dst[x + 3] = t1;                              \
        }                                                                   \
                                                                            \
        for( ; x < size.width; x++ )                                        \
            dst[x] += cvtmacro(src1[x])*cvtmacro(src2[x]);                  \
    }                                                                       \
                                                                            \
    return CV_OK;                                                           \
}


ICV_DEF_ACCPROD_FUNC( 8u32f, uchar, float, CV_8TO32F )
ICV_DEF_ACCPROD_FUNC( 32f, float, float, CV_NOP )


#define  ICV_DEF_ACCWEIGHT_FUNC( flavor, srctype, dsttype, cvtmacro )   \
IPCVAPI_IMPL( CvStatus, icvAddWeighted_##flavor##_C1IR,                 \
( const srctype *src, int srcstep, dsttype *dst, int dststep,           \
  CvSize size, dsttype alpha ), (src, srcstep, dst, dststep, size, alpha) )\
{                                                                       \
    dsttype beta = (dsttype)(1 - alpha);                                \
    srcstep /= sizeof(src[0]);                                          \
    dststep /= sizeof(dst[0]);                                          \
                                                                        \
    for( ; size.height--; src += srcstep, dst += dststep )              \
    {                                                                   \
        int x;                                                          \
        for( x = 0; x <= size.width - 4; x += 4 )                       \
        {                                                               \
            dsttype t0 = dst[x]*beta + cvtmacro(src[x])*alpha;          \
            dsttype t1 = dst[x+1]*beta + cvtmacro(src[x+1])*alpha;      \
            dst[x] = t0; dst[x + 1] = t1;                               \
                                                                        \
            t0 = dst[x + 2]*beta + cvtmacro(src[x + 2])*alpha;          \
            t1 = dst[x + 3]*beta + cvtmacro(src[x + 3])*alpha;          \
            dst[x + 2] = t0; dst[x + 3] = t1;                           \
        }                                                               \
                                                                        \
        for( ; x < size.width; x++ )                                    \
            dst[x] = dst[x]*beta + cvtmacro(src[x])*alpha;              \
    }                                                                   \
                                                                        \
    return CV_OK;                                                       \
}


ICV_DEF_ACCWEIGHT_FUNC( 8u32f, uchar, float, CV_8TO32F )
ICV_DEF_ACCWEIGHT_FUNC( 32f, float, float, CV_NOP )


#define  ICV_DEF_ACCMASK_FUNC_C1( name, srctype, dsttype, cvtmacro )    \
IPCVAPI_IMPL( CvStatus,                                                 \
name,( const srctype *src, int srcstep, const uchar* mask, int maskstep,\
       dsttype *dst, int dststep, CvSize size ),                        \
       (src, srcstep, mask, maskstep, dst, dststep, size ))             \
{                                                                       \
    srcstep /= sizeof(src[0]);                                          \
    dststep /= sizeof(dst[0]);                                          \
                                                                        \
    for( ; size.height--; src += srcstep,                               \
                          dst += dststep, mask += maskstep )            \
    {                                                                   \
        int x;                                                          \
        for( x = 0; x <= size.width - 2; x += 2 )                       \
        {                                                               \
            if( mask[x] )                                               \
                dst[x] += cvtmacro(src[x]);                             \
            if( mask[x+1] )                                             \
                dst[x+1] += cvtmacro(src[x+1]);                         \
        }                                                               \
                                                                        \
        for( ; x < size.width; x++ )                                    \
            if( mask[x] )                                               \
                dst[x] += cvtmacro(src[x]);                             \
    }                                                                   \
                                                                        \
    return CV_OK;                                                       \
}


ICV_DEF_ACCMASK_FUNC_C1( icvAdd_8u32f_C1IMR, uchar, float, CV_8TO32F )
ICV_DEF_ACCMASK_FUNC_C1( icvAdd_32f_C1IMR, float, float, CV_NOP )
ICV_DEF_ACCMASK_FUNC_C1( icvAddSquare_8u32f_C1IMR, uchar, float, CV_8TO32F_SQR )
ICV_DEF_ACCMASK_FUNC_C1( icvAddSquare_32f_C1IMR, float, float, CV_SQR )


#define  ICV_DEF_ACCPRODUCTMASK_FUNC_C1( flavor, srctype, dsttype, cvtmacro )  \
IPCVAPI_IMPL( CvStatus, icvAddProduct_##flavor##_C1IMR,                 \
( const srctype *src1, int step1, const srctype* src2, int step2,       \
  const uchar* mask, int maskstep, dsttype *dst, int dststep, CvSize size ),\
  (src1, step1, src2, step2, mask, maskstep, dst, dststep, size ))      \
{                                                                       \
    step1 /= sizeof(src1[0]);                                           \
    step2 /= sizeof(src2[0]);                                           \
    dststep /= sizeof(dst[0]);                                          \
                                                                        \
    for( ; size.height--; src1 += step1, src2 += step2,                 \
                          dst += dststep, mask += maskstep )            \
    {                                                                   \
        int x;                                                          \
        for( x = 0; x <= size.width - 2; x += 2 )                       \
        {                                                               \
            if( mask[x] )                                               \
                dst[x] += cvtmacro(src1[x])*cvtmacro(src2[x]);          \
            if( mask[x+1] )                                             \
                dst[x+1] += cvtmacro(src1[x+1])*cvtmacro(src2[x+1]);    \
        }                                                               \
                                                                        \
        for( ; x < size.width; x++ )                                    \
            if( mask[x] )                                               \
                dst[x] += cvtmacro(src1[x])*cvtmacro(src2[x]);          \
    }                                                                   \
                                                                        \
    return CV_OK;                                                       \
}


ICV_DEF_ACCPRODUCTMASK_FUNC_C1( 8u32f, uchar, float, CV_8TO32F )
ICV_DEF_ACCPRODUCTMASK_FUNC_C1( 32f, float, float, CV_NOP )

#define  ICV_DEF_ACCWEIGHTMASK_FUNC_C1( flavor, srctype, dsttype, cvtmacro ) \
IPCVAPI_IMPL( CvStatus, icvAddWeighted_##flavor##_C1IMR,                \
( const srctype *src, int srcstep, const uchar* mask, int maskstep,     \
  dsttype *dst, int dststep, CvSize size, dsttype alpha ),              \
  (src, srcstep, mask, maskstep, dst, dststep, size, alpha ))           \
{                                                                       \
    dsttype beta = (dsttype)(1 - alpha);                                \
    srcstep /= sizeof(src[0]);                                          \
    dststep /= sizeof(dst[0]);                                          \
                                                                        \
    for( ; size.height--; src += srcstep,                               \
                          dst += dststep, mask += maskstep )            \
    {                                                                   \
        int x;                                                          \
        for( x = 0; x <= size.width - 2; x += 2 )                       \
        {                                                               \
            if( mask[x] )                                               \
                dst[x] = dst[x]*beta + cvtmacro(src[x])*alpha;          \
            if( mask[x+1] )                                             \
                dst[x+1] = dst[x+1]*beta + cvtmacro(src[x+1])*alpha;    \
        }                                                               \
                                                                        \
        for( ; x < size.width; x++ )                                    \
            if( mask[x] )                                               \
                dst[x] = dst[x]*beta + cvtmacro(src[x])*alpha;          \
    }                                                                   \
                                                                        \
    return CV_OK;                                                       \
}

ICV_DEF_ACCWEIGHTMASK_FUNC_C1( 8u32f, uchar, float, CV_8TO32F )
ICV_DEF_ACCWEIGHTMASK_FUNC_C1( 32f, float, float, CV_NOP )


#define  ICV_DEF_ACCMASK_FUNC_C3( name, srctype, dsttype, cvtmacro )    \
IPCVAPI_IMPL( CvStatus,                                                 \
name,( const srctype *src, int srcstep, const uchar* mask, int maskstep,\
       dsttype *dst, int dststep, CvSize size ),                        \
       (src, srcstep, mask, maskstep, dst, dststep, size ))             \
{                                                                       \
    srcstep /= sizeof(src[0]);                                          \
    dststep /= sizeof(dst[0]);                                          \

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
a4yy欧美一区二区三区| 免费观看日韩av| 色菇凉天天综合网| 亚洲欧美国产三级| 欧美日韩久久一区| 蜜桃免费网站一区二区三区| 欧美一二三区精品| 国产精品亚洲第一| 亚洲免费观看在线观看| 欧美午夜电影网| 美日韩黄色大片| 国产欧美日韩精品一区| 色哦色哦哦色天天综合| 偷拍一区二区三区| 亚洲精品一区二区三区精华液 | 国产欧美久久久精品影院| 成人激情小说网站| 午夜欧美2019年伦理| 欧美一级免费大片| 国产成人自拍网| 亚洲国产精品欧美一二99| 精品国产乱码久久久久久老虎| 国产精品主播直播| 亚洲综合成人在线视频| 日韩欧美专区在线| av电影在线观看完整版一区二区| 亚洲黄色免费电影| 日韩欧美国产三级| 91在线视频播放| 蜜臀av性久久久久蜜臀aⅴ| 国产精品萝li| 日韩午夜激情视频| 色综合网站在线| 精品亚洲成a人| 亚洲一区二区偷拍精品| 国产婷婷一区二区| 欧美一区二区三区的| 不卡一二三区首页| 丰满亚洲少妇av| 免费成人在线观看视频| 亚洲激情五月婷婷| 中文字幕不卡在线观看| 日韩一区二区三区四区| 色综合天天综合色综合av| 国产精品资源在线看| 亚洲午夜免费视频| 亚洲欧洲精品天堂一级| 久久精品欧美日韩| 日韩一区二区精品葵司在线| 色琪琪一区二区三区亚洲区| 国产成人在线视频网站| 美女一区二区久久| 天天免费综合色| 玉米视频成人免费看| 国产精品三级电影| 久久久久国产一区二区三区四区| 制服丝袜中文字幕亚洲| 91福利国产成人精品照片| 91在线精品秘密一区二区| 国产精品1区2区| 国产在线一区观看| 韩国午夜理伦三级不卡影院| 免费在线观看日韩欧美| 午夜精品成人在线视频| 亚洲一区视频在线| 一区二区三区在线看| 亚洲黄色小视频| 亚洲久草在线视频| 一区二区三区成人| 一个色综合av| 亚洲永久精品国产| 亚洲国产精品视频| 日本最新不卡在线| 麻豆一区二区在线| 国内不卡的二区三区中文字幕| 精品一区二区在线视频| 国产一区在线观看视频| 国产一区二区三区免费| 国产精品18久久久久久久久| 国产精品一区免费视频| 成人小视频在线| 91一区二区三区在线观看| 99视频在线精品| 一本久久a久久精品亚洲| 色哦色哦哦色天天综合| 欧美日韩国产色站一区二区三区| 欧美日韩成人一区| 精品国产自在久精品国产| 亚洲小说欧美激情另类| 日韩电影免费一区| 国产剧情一区二区| av在线不卡免费看| 欧美无乱码久久久免费午夜一区| 欧美高清精品3d| 精品sm在线观看| 18欧美亚洲精品| 亚洲国产精品一区二区尤物区| 日日摸夜夜添夜夜添精品视频 | 奇米影视7777精品一区二区| 久久精品72免费观看| 国产精品1区二区.| 在线一区二区三区四区| 51久久夜色精品国产麻豆| 精品国产露脸精彩对白| 亚洲欧美综合在线精品| 亚洲国产综合在线| 九九九久久久精品| 色婷婷综合久色| 精品久久久久一区| 亚洲欧美韩国综合色| 三级在线观看一区二区| 国产91丝袜在线观看| 日本二三区不卡| 久久综合狠狠综合久久综合88 | 日韩欧美国产一区二区三区| 国产精品视频第一区| 亚洲sss视频在线视频| 国模套图日韩精品一区二区| 97久久久精品综合88久久| 日韩欧美色综合网站| 亚洲欧美在线视频观看| 麻豆久久久久久| 欧美三级欧美一级| 国产精品丝袜在线| 久久精品国产一区二区三| 91在线看国产| 亚洲最大色网站| 国产91清纯白嫩初高中在线观看| 欧美日韩综合一区| 国产精品传媒入口麻豆| 久久99国产精品尤物| 欧美日韩在线播放一区| 欧美国产欧美综合| 国精产品一区一区三区mba视频| 91亚洲精品一区二区乱码| 日韩免费观看高清完整版在线观看| 亚洲人成网站色在线观看| 国产精品一区二区免费不卡| 欧美精品久久天天躁| 玉米视频成人免费看| 成人精品免费看| 欧美精品一区二区三区高清aⅴ | 欧美变态凌虐bdsm| 日韩精品一区第一页| 色素色在线综合| 亚洲欧洲日韩一区二区三区| 国产一本一道久久香蕉| 精品三级av在线| 美国十次了思思久久精品导航| 欧美日韩一区中文字幕| 亚洲美女区一区| 成人av网站在线观看免费| 国产性天天综合网| 国产成人在线色| 国产欧美日韩卡一| 成人精品gif动图一区| 欧美国产乱子伦| 丁香婷婷综合激情五月色| 久久久夜色精品亚洲| 国产精品亚洲第一区在线暖暖韩国| 欧美mv日韩mv| 国产伦理精品不卡| 国产三级精品三级在线专区| 国产高清成人在线| 国产精品免费久久| 一本色道久久综合亚洲精品按摩| 自拍偷拍国产亚洲| 91免费版在线| 亚洲在线观看免费视频| 欧美性videosxxxxx| 天天影视涩香欲综合网| 9191精品国产综合久久久久久| 午夜精品123| 日韩久久精品一区| 激情伊人五月天久久综合| 精品久久久久久久久久久久久久久久久 | 精品精品国产高清一毛片一天堂| 久久电影网站中文字幕| 26uuu成人网一区二区三区| 国产一区在线视频| 日韩一区在线播放| 在线国产亚洲欧美| 偷拍亚洲欧洲综合| 欧美成人伊人久久综合网| 国产一区二区精品久久99| 国产精品视频一二三| 91精品福利视频| 蜜臀久久久久久久| 国产欧美一区二区在线| 99久久精品国产一区二区三区| 亚洲综合丝袜美腿| 精品国一区二区三区| 成人av资源在线观看| 亚洲一区二区三区四区在线| 91精品在线观看入口| 国产高清一区日本| 亚洲成a人在线观看| 亚洲午夜精品在线| 久久亚洲欧美国产精品乐播 | 亚洲一区二区精品视频|