Newer
Older
lynxi-plugin / src / ipe / post_ipe_process.cpp
/**
 * @file resnet50Lib.cpp
 * @author hongjian.huang (hongjian.huang@lynxi.com)
 * @brief
 * @version 0.1
 * @date 2022-08-26
 *
 * Copyright:
 * © 2018 北京灵汐科技有限公司 版权所有。
 * 注意:以下内容均为北京灵汐科技有限公司原创,未经本公司允许,不得转载,否则将视为侵权;对于不遵守此声明或者其他违法使用以下内容者,本公司依法保留追究权。
 * © 2018 Lynxi Technologies Co., Ltd. All rights reserved.
 * NOTICE: All information contained here is, and remains the property of Lynxi. This file can not
 * be copied or distributed without the permission of Lynxi Technologies Co., Ltd.
 *
 * @par 修改日志:
 * Data:2022-08-26
 * Author: hongjian.huang
 * Description:
 */

#include "ipeParam.h"
#include "post_ipe_process.h"
#include <sys/time.h>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <lyn_api.h>
#include <string>
#include <utility>


int  LynArmIPEProcess(IpePostInfo *para)
{

    //初始化 IPE 处理类
    int32_t inWidth, inHeight, outWidth, outHeight;
    lynPixelFormat_t inFormat;

    inWidth = para->inputWidth;
    inHeight = para->inputHeight;
    inFormat = para->inputFmt;
    outWidth = para->outputWidth;
    outHeight = para->outputHeight;

    IpeParam ipeParam(outWidth, outHeight);
    ipeParam.SetImgInfo(inWidth, inHeight, inFormat);
    float input_array[2][3] = {0.8660254, 0.5, -20, -0.5, 0.8660254, 100};
    //IPE 计算ipe参数和ipe处理函数
    ipeParam.CalcAffineParam(para->inputData, para->outputData, input_array);

    return 0;
}