cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
xf_gammacorrection_config.h
Go to the documentation of this file.
1 
17 
44 
56 #ifndef _XF_GAMMA_CONFIG_H_
57 #define _XF_GAMMA_CONFIG_H_
58 
59 #include "hls_stream.h"
60 #include "ap_int.h"
61 #include "common/xf_common.hpp"
62 #include "common/xf_utility.hpp"
63 #include "features/xf_harris.hpp"
64 #include "xf_config_params.h"
65 #include "../../../host/harris/include/config.h"
66 #include "imgproc/xf_gammacorrection.hpp"
67 
68 #define WIDTH FRAME_WIDTH
69 #define HEIGHT FRAME_HEIGHT
70 
71 #define IMGSIZE WIDTH * HEIGHT
72 #define IMG_PACKETS IMGSIZE/(INPUT_PTR_WIDTH/8)
73 
74 #if NO
75 #define NPC1 XF_NPPC1
76 #endif
77 #if RO
78 #define NPC1 XF_NPPC8
79 #endif
80 
81 //#define IN_TYPE XF_8UC3
82 //#define OUT_TYPE XF_8UC3
83 
84 
85 #if RO
86 #define IN_TYPE ap_uint<64>
87 #endif
88 #if NO
89 #define IN_TYPE ap_uint<8>
90 #endif
91 
92 
93 void gammacorrection_accel(xf::cv::Mat<IN_TYPE, HEIGHT, WIDTH, NPC1>& imgInput1,
94  xf::cv::Mat<OUT_TYPE, HEIGHT, WIDTH, NPC1>& imgOutput,
95  float gammaval);
96 
97 
99  hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_in_axi_stream,
100  hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_out_axi_stream,
101  float gammaval);
102 
103 #endif //_XF_GAMMA_CONFIG_H_
104 
105 
void gammacorrection_accel(xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > &_src, xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > &_dst, unsigned short Thresh, unsigned short k)
void cornerGammacorrectionAccelStream(hls::stream< ap_axiu< INPUT_PTR_WIDTH, 0, 0, 0 > > &img_in_axi_stream, hls::stream< ap_axiu< INPUT_PTR_WIDTH, 0, 0, 0 > > &img_out_axi_stream, float gammaval)
The WarpTransform IP configuration header.